EntVlE
Windmill13mo ago
4 replies
EntVl

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