Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: dynamic select fails when using relative imports #4417

Open
m-thomson opened this issue Sep 20, 2024 · 1 comment
Open

bug: dynamic select fails when using relative imports #4417

m-thomson opened this issue Sep 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@m-thomson
Copy link

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 m-thomson added the bug Something isn't working label Sep 20, 2024
@m-thomson
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants