tomdavidsonT
Windmill7d 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


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"
    }
}


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?
Was this page helpful?