Skip to content

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

@salaarkhan-dev

Description

@salaarkhan-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions