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
Describe the bug
Hi. I'm getting this error on npm dev. The fix is to add "type": "module" to package.json. I'm using import, so node expects esm module.
I'm just reporting. Can live with it.
Internal server error: Unexpected token 'export'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1195:20)
at Module._compile (node:internal/modules/cjs/loader:1239:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:165:29)
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
/home/user/_Dev/Web/Sveltekit/account/node_modules/.pnpm/[email protected]/node_modules/just-validate/dist/just-validate.es.js:1577
export {
^^^^^^
SyntaxError: Unexpected token 'export'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1195:20)
at Module._compile (node:internal/modules/cjs/loader:1239:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:165:29)
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
To Reproduce
Steps to reproduce the behavior:
Install Just-validate
Run npm dev (Vite dev)
See error
The text was updated successfully, but these errors were encountered:
zs-ko
added a commit
to zerosubnet/Just-validate
that referenced
this issue
Aug 23, 2023
Describe the bug
Hi. I'm getting this error on npm dev. The fix is to add "type": "module" to package.json. I'm using import, so node expects esm module.
I'm just reporting. Can live with it.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: