#TypeError Dynamic import is not enabled in this context.

4 messages · Page 1 of 1 (latest)

carmine nest
#

When importing using import(library/api/discord/commands/) and import(../../library/api/discord/commands/test.ts) locally everything works fine. When running the same code on deno deploy i get the error "TypeError: Dynamic import is not enabled in this context."

#

Is there some kind of setting I have to change or a different way to import?

surreal gorge
#

deploy currently doesnt support dynamic imports

carmine nest
#

what would be a different way that i could access the data from another file?