quasar-draggable-tree icon indicating copy to clipboard operation
quasar-draggable-tree copied to clipboard

ssr mode error

Open Rasool-deldar opened this issue 1 year ago • 0 comments

(node:17684) 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) C:\www\node_modules.pnpm\[email protected][email protected]\node_modules\quasar-app-extension-qdraggabletree\src\boot\register.js:1 import { boot } from 'quasar/wrappers' ^^^^^^

SyntaxError: Cannot use import statement outside a module at compileFunction () at Object.compileFunction (node:vm:360:18) at wrapSafe (node:internal/modules/cjs/loader:1119:15) at Module._compile (node:internal/modules/cjs/loader:1155:27) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10) at Module.load (node:internal/modules/cjs/loader:1069:32) at Function.Module._load (node:internal/modules/cjs/loader:904:12) at ModuleWrap. (node:internal/modules/esm/translators:169:29) at ModuleJob.run (node:internal/modules/esm/module_job:193:25) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:530:24) at async importModuleDynamicallyWrapper (node:internal/vm/module:438:15) at async nodeImport (C:\www\node_modules.pnpm\[email protected][email protected]\node_modules\vite\dist\node\chunks\dep-689425f3.js:50387:21) at async Promise.all (index 4)  ELIFECYCLE  Command failed with exit code 1.

How to fix this error?

Rasool-deldar avatar Apr 12 '23 11:04 Rasool-deldar