adminjs icon indicating copy to clipboard operation
adminjs copied to clipboard

[Bug]: SyntaxError: The requested module '@tiptap/core' does not provide an export named 'canInsertNode'

Open salaarkhan-dev opened this issue 5 months ago • 5 comments

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


salaarkhan-dev avatar Jul 24 '25 08:07 salaarkhan-dev

I'm facing the same problem. It makes me unable to use AdminJS

saifsweelam avatar Jul 25 '25 16:07 saifsweelam

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]

salaarkhan-dev avatar Jul 26 '25 08:07 salaarkhan-dev

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 :)

japsimrans13 avatar Oct 22 '25 05:10 japsimrans13

@tiptap/[email protected]

its working! thank you

taufikmuharrom avatar Nov 04 '25 04:11 taufikmuharrom

What worked for me was:

  1. delete yarn.lock
  2. yarn cache clean
  3. yarn install

RitvikSardana avatar Nov 07 '25 11:11 RitvikSardana