[Bug]: SyntaxError: The requested module '@tiptap/core' does not provide an export named 'canInsertNode'
Contact Details
No response
What happened?
- Installed a fresh app using cli tool and when I start the project it is giving
Details
node_modules/.pnpm/@tiptap+extension-horizonta_22a8c1c41006f67265f459342f8db8b5/node_modules/@tiptap/extension-horizontal-rule/dist/index.js:1 import { Node, mergeAttributes, canInsertNode, isNodeSelection, nodeInputRule } from '@tiptap/core'; ^^^^^^^^^^^^^ SyntaxError: The requested module '@tiptap/core' does not provide an export named 'canInsertNode' at ModuleJob._instantiate (node:internal/modules/esm/module_job:182:21) at async ModuleJob.run (node:internal/modules/esm/module_job:266:5) at async onImport.tracePromise.proto (node:internal/modules/esm/loader:644:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
Node.js v22.16.0
Bug prevalence
Starting after fresh install
AdminJS dependencies version
"dependencies": { "adminjs": "^7.7.2", "@adminjs/express": "^6.1.0", "@adminjs/nestjs": "^6.1.0", "express-formidable": "^1.2.0", "express-session": "^1.17.3", },
What browsers do you see the problem on?
No response
Relevant log output
import { Node, mergeAttributes, canInsertNode, isNodeSelection, nodeInputRule } from '@tiptap/core';
^^^^^^^^^^^^^
SyntaxError: The requested module '@tiptap/core' does not provide an export named 'canInsertNode'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:182:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:266:5)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
Node.js v22.16.0
Relevant code that's giving you issues
I'm facing the same problem. It makes me unable to use AdminJS
I'm facing the same problem. It makes me unable to use AdminJS
I fixed that by manually installing the required package:
pnpm add @tiptap/[email protected]
I'm facing the same problem. It makes me unable to use AdminJS
I fixed that by manually installing the required package:
pnpm add @tiptap/[email protected]
Worked for me. Thanks :)
What worked for me was:
- delete yarn.lock
- yarn cache clean
- yarn install