Closed alvissraghnall closed 1 year ago
I have same error only for npm run build
((
(node:79292) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/node_modules/simply-reactive/main.js:1
import { simplyReactive } from './src/simply-reactive'
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:74:18)
at wrapSafe (node:internal/modules/cjs/loader:1141:20)
at Module._compile (node:internal/modules/cjs/loader:1182:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
Node.js v18.13.0
Same issue in the REPL simplyReactive is not a function
Can't get it to run in any of my stackblitz projects, tried svelte and sveltekit, even Astro + svelte
Adding my comment just to say if someone finds a solution please add it, it'll help
also the repl isn't working :(
I've fixed that in drop-in replacement "@wildfluss/svelte-carousel": "1.0.26" works for me on vercel
Fixed in svelte-carousel@1.0.23
Error generated everytime i run yarn dev and visit a route (SvelteKit). Initially the server would not start at all - something about setting kit.vite in svelte.config.js:
Fixed that by moving the config to vite.config.ts as advised. Now, I'm lost with this simply-reactive error. Any ideas ?