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

Sveltekit deno task build not working #22964

Closed
littledivy opened this issue Mar 17, 2024 · 0 comments · Fixed by #22841
Closed

Sveltekit deno task build not working #22964

littledivy opened this issue Mar 17, 2024 · 0 comments · Fixed by #22841
Labels
bug Something isn't working correctly node compat

Comments

@littledivy
Copy link
Member

$ deno run -A npm:create-svelte@latest my-app/
$ cd my-app/
$ deno task build
Task build vite build
vite v5.1.6 building SSR bundle for production...
"confetti" is imported from external module "@neoconfetti/svelte" but never used in "src/routes/sverdle/+page.svelte".
✓ 120 modules transformed.
error: Uncaught (in worker "") (in promise) Error: require() of ES Module /Users/divy/gh/goa/my-app/node_modules/.deno/@sveltejs+kit@2.5.3/node_modules/@sveltejs/kit/src/core/postbuild/analyse.js from /Users/divy/gh/goa/my-app not supported. Instead change the require to a dynamic import() which is available in all CommonJS modules.
    at createRequireEsmError (node:module:740:15)
    at Object.Module._extensions..js (node:module:729:13)
    at Module.load (node:module:643:32)
    at Function.Module._load (node:module:524:12)
    at Module.require (node:module:662:19)
    at require (node:module:776:16)
    at data:text/javascript,(async function() {c......d/analyse.js");})();:1:140
error: Uncaught (in promise) Error: Unhandled error. ([Object: null prototype] {
  message: 'Uncaught (in promise) Error: require() of ES Module /Users/divy/gh/goa/my-app/node_modules/.deno/@sveltejs+kit@2.5.3/node_modules/@sveltejs/kit/src/core/postbuild/analyse.js from /Users/divy/gh/goa/my-app not supported. Instead change the require to a dynamic import() which is available in all CommonJS modules.',
  fileName: 'node:module',
  lineNumber: 740,
  columnNumber: 15
})
    at NodeWorker.emit (ext:deno_node/_events.mjs:371:17)
    at NodeWorker.#handleError (node:worker_threads:155:10)
    at NodeWorker.#pollControl (node:worker_threads:175:30)
    at eventLoopTick (ext:core/01_core.js:169:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node compat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant