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
/home/julian/Programming/html-to-pdf/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@automattic/isolated-block-editor/build/index.js:79
import { createElement } from "react";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:77:18)
at wrapSafe (node:internal/modules/cjs/loader:1288:20)
at Module._compile (node:internal/modules/cjs/loader:1340:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Object.require.extensions.<computed> [as .js] (/home/julian/Programming/html-to-pdf/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:1045:43)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Function.Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/home/julian/Programming/html-to-pdf/src/collections/PdfTemplates/Editor/index.tsx:2:1)
[nodemon] app crashed - waiting for file changes before starting...
When i try to import the React Component inside my project i get: SyntaxError: Cannot use import statement outside a module
The error:
My .tsconfig.json
My package.json
My Other Versions:
OS: WSL in Windows 11
Node: 20.11.0
Any help would be appreciate. Thanks in advance
The text was updated successfully, but these errors were encountered: