-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'addExtensions' of undefined #1580
Comments
Hey @devgeni - what was the solution which made it work for you? |
Update your dependencies ✌️ |
We have the latest version of TipTap core and all the extensions - but still stuck on this issue. Anything else we could check? |
default export in node doesn’t work. you have to do: const { Document } = require("@tiptap/extension-document") instead of const Document = require("@tiptap/extension-document") |
FYI for anyone running across this: I ran into this because I was still using StarterKit which uses the default imports. I switched to custom extension setup with the correct imports. |
Description
Error while trying to convert html string to json object with node using tiptap/html
Steps to reproduce the bug
Steps to reproduce the behavior:
npm install @tiptap/extension-document @tiptap/extension-paragraph @tiptap/extension-text @tiptap/html
test.js
and put the code below inside it:node index.js
Expected behavior
It should output
{ type: 'doc', content: [ { type: 'paragraph', content: [Array] } ] }
in the console.Additional context
Here is how the error looks llike:
Here is the link to the source where it happens:
https://github.com/ueberdosis/tiptap/blob/main/packages/core/src/ExtensionManager.ts#L143
The text was updated successfully, but these errors were encountered: