WindmillWWindmill
Powered by
EntVlE
Windmill•15mo 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...
WindmillJoin
3,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 6d ago

rubenf

Infrastructure as code

rubenf · 4w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

Failed to import Python Libaries
LeandroLLeandro / help
15mo ago
wmill sync not bundling relative imports
NackiNNacki / help
8mo ago
Relative imported module doesn't respect optional/non-imported Python dependencies
fr3fouFfr3fou / help
17mo ago
No arguments passed to main when relative imports in VSCode Preview
bembleBbemble / help
12mo ago