pluvial / svelte-adapter-deno

A SvelteKit adapter for Deno
https://svelte-adapter-deno.deno.dev/
MIT License
325 stars 13 forks source link

Dynamic import is not enabled in this context. #44

Closed xijaja closed 1 year ago

xijaja commented 1 year ago

When using version "0.9.0", an error will be reported when deploying to deno. I use deployctl to deploy.

TypeError: Dynamic import is not enabled in this context.
    at async respond_with_error (file:///src/server/index.js:2293:28)
    at async resolve (file:///src/server/index.js:3611:16)
    at async respond (file:///src/server/index.js:3490:22)
    at async ssr (file:///src/handler.js:34:19)
    at async handler (file:///src/handler.js:80:11)
    at async dispatch (https://deno.land/x/oak@v11.1.0/middleware.ts:41:7)
    at async Application.#handleRequest (https://deno.land/x/oak@v11.1.0/application.ts:436:9) {
  code: "ERR_MODULE_NOT_FOUND"
}

When I change the version back to "0.8.2" it deploys successfully. I don't know what causes this.

xijaja commented 1 year ago

我发现它重复了,所以将它关闭。