EntVl
EntVl5w ago

Failed to find relative import

We have self-hosted Windmill server. After server was restarted, we've found that every flow is broken. All relative imports inside the flow don't work with errors like: "ExecutionErr: ExitCode: 1, last log lines: job=0193d931-9e95-c35d-f240-6e7ad9ffba22 tag=bun worker=wk-default-e968bb332c80-uXFG1 hostname=e968bb332c80 error: Failed to find relative import at http://127.0.0.1:34291/api/w/uat/scripts/raw_unpinned/p/tmp/main/../../../profit4/getProductIdBySku.ts at /tmp/windmill/wk-default-e968bb332c80-uXFG1/profit4/getProductIdBySku.ts.url:1:0". Whenewher when we are trying to run this flow in edit mode, everything works fine, running sepparate script works well also. So, the problem exists only when flow is run mannualy or via some trigger. We are using relative imports like: "import { main as getCountryId} from "../../profit4/getCountryId". Language: "Bun". Can you please help us with understanding what goes wrong? We've tried to restart and re-create winmill server, we've tried to re-create metadata using "wmill script generate-metadata", but nothing helped...
3 Replies
rubenf
rubenf5w ago
@EntVl we have published a fix in 1.440.0 it's still building but should be available in 20mins
EntVl
EntVlOP5w ago
@rubenf Thank you for your response, could you please share a link with release notes for this version or with accident info? Are any additional steps required from our side after fix will be published? Many thanks for fast response, it was really helpful.
rubenf
rubenf5w ago
We did an optimization for deployed flows that broke relative imports, which we fixed

Did you find this page helpful?