You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run dev deno run -A --unstable --node-modules-dir npm:vite
Error message:
failed to load config from /Users/andyjiang/Developer/deno/blog/how-to-series/svelte/vite.config.mjs
error when starting dev server:
TypeError: 'import', and 'export' cannot be used outside of module code at file:///Users/andyjiang/Developer/deno/blog/how-to-series/svelte/node_modules/.deno/svelte-routing@1.6.0/node_modules/svelte-routing/src/index.js:1:1
at async loadConfigFromBundledFile (file:///Users/andyjiang/Developer/deno/blog/how-to-series/svelte/node_modules/.deno/vite@3.2.2/node_modules/vite/dist/node/chunks/dep-c842e491.js:64010:21)
at async loadConfigFromFile (file:///Users/andyjiang/Developer/deno/blog/how-to-series/svelte/node_modules/.deno/vite@3.2.2/node_modules/vite/dist/node/chunks/dep-c842e491.js:63895:28)
at async resolveConfig (file:///Users/andyjiang/Developer/deno/blog/how-to-series/svelte/node_modules/.deno/vite@3.2.2/node_modules/vite/dist/node/chunks/dep-c842e491.js:63519:28)
at async createServer (file:///Users/andyjiang/Developer/deno/blog/how-to-series/svelte/node_modules/.deno/vite@3.2.2/node_modules/vite/dist/node/chunks/dep-c842e491.js:62819:20)
at async CAC.<anonymous> (file:///Users/andyjiang/Developer/deno/blog/how-to-series/svelte/node_modules/.deno/vite@3.2.2/node_modules/vite/dist/node/cli.js:707:24)
The text was updated successfully, but these errors were encountered:
Running into a
TypeError
when trying to add an import statement invite.config.mjs
. I'm on MacOS Intel i5.Reproduce:
deno run -A --unstable npm:create-vite-extra
and selectingdeno-svelte
vite.config.mjs
todev deno run -A --unstable --node-modules-dir npm:vite
Error message:
The text was updated successfully, but these errors were encountered: