windmill-labs / windmill

Open-source developer platform to power your entire infra and turn scripts into webhooks, workflows and UIs. Fastest workflow engine (13x vs Airflow). Open-source alternative to Retool and Temporal.
https://windmill.dev
Other
9.66k stars 444 forks source link

bug: dynamic select fails when using relative imports #4417

Open m-thomson opened 4 hours ago

m-thomson commented 4 hours ago

Describe the bug

I attempted to implement a dynamic select and found that I could not do so when also using a relative import. After removing the import (and all references to it), the dynamic select works as expected (in Bun)

Screencap2024 09 20 1517

Interestingly, it works correctly from the "deployed" page, just not the editor page: Screencap2024 09 20 1531

This is using TS/Bun. I tried it with Deno and neither worked. The error popup in Deno was a similar message about not being able to find the import.

Whether bundles are enabled or disabled seemed to have no effect.

To reproduce

Attempt to use dynamic select in a script that also has a relative import.

Expected behavior

Dynamic select should work even with imports.

Screenshots

No response

Browser information

No response

Application version

EE v1.393.2-2-g6f0af6b8c

Additional Context

No response

m-thomson commented 4 hours ago

I should add: obviously in my example, the dynamic select values aren't actually "dynamic". This was a test to see if I could get it working before making the values dynamic.