issue with dynamic import in edge function #18662
Unanswered
saschthetasch
asked this question in
Questions
Replies: 2 comments
-
We're in the same boat but its not entirely supabase its Deno issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
After looking at the code, found a hack.
Then import this file in the file you use dynamic import. Since non-statically analyzable dynamic imports won't work as per docs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue
I have one edge function with different imports at the top. To trigger this function we post a request with an "id" and "slug" to import dynamic the config based on this values.
Local works everything well but if i deploy it to production the i got following message
My code look like this:
In my local environment it works very well but after i deploy it, i got everytime the error above.
my thoughts
My thesis is, that supabase edge functions dont allow dynamic imports. But hopefully someone can help me
Beta Was this translation helpful? Give feedback.
All reactions