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
{{ message }}
Repository navigation
[Bug]: SyntaxError: The requested module '@tiptap/core' does not provide an export named 'canInsertNode' #1774
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)
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
Reacted by Nguyễn Thanh Cảnh, Seif El-Din Sweilam, koki-yasuda, Sjoert, Vladimir Lebedev and Christopher Kwiatkowski
I've hit this in a fresh adminjs project. I think fixing will require adminjs to bump core & starter-kit to 2.22.3, which seems to have been when canInsertNode was added.
This is what I'm seeing:
@adminjs/design-system@4.1.1 pins @tiptap/core (and @tiptap/starter-kit) at exactly 2.1.13
@tiptap/starter-kit includes extension packages with a looser ^2.1.13 range, and they will get installed at the newest matching release, which for me was 2.27.2.
extension-horizontal-rule@2.27.2 expects canInsertNode from @tiptap/core, which doesn't exist yet in 2.1.13.
I'd also guess that this affects all fresh installs of adminjs since mid-2025. If that's right, then even though there's a workaround (as @salaarkhan-dev said, override @tiptap/extension-horizontal-rule to be < 2.22.3), the bug itself is probably high-impact.
Notes on canInsertNode's addition
This issue makes it sound like it was added and then removed, but I think the issue poster was confused.
This changelog mentions it being added for version 3, which is also wrong.
Activity
saifsweelam commentedon Jul 25, 2025
I'm facing the same problem. It makes me unable to use AdminJS
salaarkhan-dev commentedon Jul 26, 2025
I fixed that by manually installing the required package:
pnpm add @tiptap/extension-horizontal-rule@2.1.13japsimrans13 commentedon Oct 22, 2025
Worked for me. Thanks :)
taufikmuharrom commentedon Nov 4, 2025
its working! thank you
RitvikSardana commentedon Nov 7, 2025
What worked for me was:
docentYT commentedon Feb 13, 2026
I am using bun and I encountered the same bug. No fixes work.
johncip commentedon Aug 1, 2026
I've hit this in a fresh adminjs project. I think fixing will require adminjs to bump core & starter-kit to
2.22.3, which seems to have been whencanInsertNodewas added.This is what I'm seeing:
@adminjs/design-system@4.1.1pins@tiptap/core(and@tiptap/starter-kit) at exactly2.1.13@tiptap/starter-kitincludes extension packages with a looser^2.1.13range, and they will get installed at the newest matching release, which for me was 2.27.2.extension-horizontal-rule@2.27.2expectscanInsertNodefrom@tiptap/core, which doesn't exist yet in 2.1.13.I'd also guess that this affects all fresh installs of adminjs since mid-2025. If that's right, then even though there's a workaround (as @salaarkhan-dev said, override
@tiptap/extension-horizontal-ruleto be < 2.22.3), the bug itself is probably high-impact.Notes on
canInsertNode's addition