tiptap: beta-210 release broke builds on Next.js (and possibly others)
What’s the bug you are facing?
When using latest Tiptap version (beta-210 or 211) with extension-collaboration, it breaks on Next.js 13.
Which browser was this experienced in? Are any special extensions installed?
Firefox
How can we reproduce the bug on our side?
npx create-next-app tiptap-test
npm install @tiptap/core @tiptap/pm @tiptap/starter-kit
npm install @tiptap/extension-collaboration yjs
Create a Tiptap component that just sets up StarterKit and Collaboration
You will face the issue - Module not found - Can’t resolve perf_hooks.
Can you provide a CodeSandbox?
No response
What did you expect to happen?
Should’ve worked.
Anything to add? (optional)
I tried using Next dynamic imports as well, to no avail.
Did you update your dependencies?
- Yes, I’ve updated my dependencies to use the latest version of all packages.
Are you sponsoring us?
- Yes, I’m a sponsor. 💖
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 9
- Comments: 41 (11 by maintainers)
The getting started guide for Next.js is now also broken. Resulting in a wrong Lodash import originating from the bubble-menu extension.
Did you mean to import lodash/debounce.js?I started getting this error too.
Experiencing the same with
lodash. We will have a look – thanks for reporting!@acirinelli could you try @stepanjakl 's fix while I work on this issue? https://github.com/ueberdosis/tiptap/issues/3689#issuecomment-1414492414
I’ll keep you updated.
+1 Same issue as a dependency to the
@tiptap/vue-2package. Downgrading to version2.0.0-beta.209helped. I just overode the peer dependency in thepackage.jsonfile, like so:@bdbch I’m having the same issue as @harryyaprakov
@tiptap/pmis not present in thenode_modules.Manually adding seemed to fix my build.
You’re not alone: https://github.com/ueberdosis/tiptap/pull/3699#issuecomment-1420562078
I got this output in Vitest using beta.215 (beta.213 works ok). The output is related to
node_modules/@tiptap/extension-bubble-menu/dist/index.js:3Did you saw https://github.com/ueberdosis/tiptap/issues/3701#issuecomment-1416503614 ?
this seems to fix it 🎉
That fixed it for me! Thanks 😃
Could you update to
beta.217and try again?I released a quick fix for this with version
beta.213- could you guys test this again?I just updated my libraries (updated to
beta.211) and now I get the following error:It seems to be a bug within tiptap that started with: https://github.com/ueberdosis/tiptap/pull/3501/files
I’m using
@tiptap/react