WindmillWWindmill
Powered by
tomdavidsonT
Windmill•2mo ago•
9 replies
tomdavidson

can not resolve public package

Ive at had a bear of a time adding shared logic to tasks and finally published some of it as a public package. Still can not resolve the dependencies.
ExecutionErr: exit code for "bun build": 1, last log lines:
[0m@1.596.0
3 packages installed [41.00ms]
4 | import { load, durable, beforeRisky, complete, windmillStorage } from 'durable-x';
                                                                          ^
error: Could not resolve: "durable-x". Maybe you need to "bun install"?
    at /tmp/windmill/wk-default-8rtl7-xvtrA/019b51a3-def6-dd0a-2236-1e68132ece91/main.ts:4:71
Failed to build node bundle
ExecutionErr: exit code for "bun build": 1, last log lines:
[0m@1.596.0
3 packages installed [41.00ms]
4 | import { load, durable, beforeRisky, complete, windmillStorage } from 'durable-x';
                                                                          ^
error: Could not resolve: "durable-x". Maybe you need to "bun install"?
    at /tmp/windmill/wk-default-8rtl7-xvtrA/019b51a3-def6-dd0a-2236-1e68132ece91/main.ts:4:71
Failed to build node bundle


mime-types are installed just fine, it is only my durable-x package that is failing. I finally added a package.json to the task dir:

{
    "dependencies": {
        "durable-x": "^0.2.0",
        "mime-types": "^3.0.2"
    }
}
{
    "dependencies": {
        "durable-x": "^0.2.0",
        "mime-types": "^3.0.2"
    }
}


local bun install works just fine.


Maybe related but I seem to have problems with Windmill remote (cloud) hanging on to old file versions.

Any ideas on further troubleshooting, I kid you not, I have over four hours trying to make this work?
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Connection did not resolve
yawniekYyawniek / help
3y ago
Python private package
mufraggihugoMmufraggihugo / help
2y ago
script runs fine, but deployment fails with Could not resolve: "typescript".
ni_kaNni_ka / help
11mo ago