Hello i get this error, when trying to import the Editor like in the demo:
/home/julian/Programming/html-to-pdf/node_modules/.pnpm/ts-node@9.1.1_typescript@4.9.5/node_modules/ts-node/dist/index.js:701
return old(m, filename);
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/julian/Programming/html-to-pdf/node_modules/.pnpm/@grapesjs+react@1.0.0/node_modules/@grapesjs/react/dist/index.umd.js from /home/julian/Programming/html-to-pdf/src/collections/PdfTemplates/Editor/index.tsx not supported.
index.umd.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
import GjsEditor from '@grapesjs/react';'
For my project i use Payload CMS and want to use GrapesJS as my Editor
My TsConfig:
Hello i get this error, when trying to import the Editor like in the demo:
/home/julian/Programming/html-to-pdf/node_modules/.pnpm/ts-node@9.1.1_typescript@4.9.5/node_modules/ts-node/dist/index.js:701 return old(m, filename); Error [ERR_REQUIRE_ESM]: require() of ES Module /home/julian/Programming/html-to-pdf/node_modules/.pnpm/@grapesjs+react@1.0.0/node_modules/@grapesjs/react/dist/index.umd.js from /home/julian/Programming/html-to-pdf/src/collections/PdfTemplates/Editor/index.tsx not supported. index.umd.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
import GjsEditor from '@grapesjs/react';'
For my project i use Payload CMS and want to use GrapesJS as my Editor My TsConfig:My package.json
Any help would be appreciated. Thanks