(node:14544) 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)
11:54:58 [vite] Error when evaluating SSR module /app/routes/_index.tsx: failed to import "novel"
|- D:\github\admin-frontend\node_modules\tiptap-extension-auto-joiner\dist\index.js:1
import { Extension, getNodeType } from '@tiptap/core';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1178:20)
at Module._compile (node:internal/modules/cjs/loader:1220:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
https://github.com/steven-tey/novel/issues/357#issuecomment-2067602454 Seeing errors related to es module. I think we can just implement the changes from the other repo: https://github.com/NiclasDev63/tiptap-extension-global-drag-handle/commit/4e14415238ab6fdef318a5577ddd974d4a314932