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
When I try show slash menu on production, always shows e.fn is not a function error #276
When I try showing any menu (slash, Toolbar, SideMenu) on production, this error always shown,
It seems tippyjs issue... but I didn't catch any clue, so I wrote this issue on this repo
Hey everyone, new version is up with the changes to menu rendering! @nabi-chan@joshua-lawrence@dlwocks31 could you guys let me know if you're still encountering this issue on 0.8.3?
@matthewlipski Yes, seems like this particular issue is resolved, thanks a lot! Unfortunately, I am still encountering a similar issue in production build. The error message is same, but it occurs only when minification is on (while in v0.8.2 it didn't matter), so I am guessing two issues should have different root cause. I have posted my error reproduction step in #292
Running on Next.js 13 and pnpm here, its appears the issue is still present for me:
Behavior is slightly different now though. The page doesn't compile anymore, I'm getting my error page. I'll investigate and see if I can help find a root cause.
Oops, realized I set the config incorrectly on webpack. @YousefED
With webpack minification disabled, the JavaScript heap runs out of memory during our build. Given this isn't a BlockNote issue, I'll look elsewhere for solutions that don't completely skirt minification and update if I find a workaround that's working for me. Thanks.
Activity
YousefED commentedon Jul 19, 2023
Thanks @nabi-chan for this, and thanks for your sponsorship! Very much appreciated.
We're currently refactoring how the menus / tippy instances get rendered. See #270 . We hope to get this released next week! cc @matthewlipski
joshua-lawrence commentedon Jul 20, 2023
Just wanted to add that we are also encountering this issue in our production build!
dlwocks31 commentedon Jul 31, 2023
We are also facing this same issue. Looking forward to the rearchitecture!
matthewlipski commentedon Aug 2, 2023
Hey everyone, new version is up with the changes to menu rendering! @nabi-chan @joshua-lawrence @dlwocks31 could you guys let me know if you're still encountering this issue on 0.8.3?
dlwocks31 commentedon Aug 2, 2023
@matthewlipski Yes, seems like this particular issue is resolved, thanks a lot! Unfortunately, I am still encountering a similar issue in production build. The error message is same, but it occurs only when minification is on (while in v0.8.2 it didn't matter), so I am guessing two issues should have different root cause. I have posted my error reproduction step in #292
joshua-lawrence commentedon Aug 2, 2023
Running on Next.js 13 and pnpm here, its appears the issue is still present for me:

Behavior is slightly different now though. The page doesn't compile anymore, I'm getting my error page. I'll investigate and see if I can help find a root cause.
joshua-lawrence commentedon Aug 2, 2023
There is an empty object in the Tippy plugins array:
The particular function above that's throwing the error in @tippyjs/react
Still digging around..
YousefED commentedon Aug 2, 2023
It seems a very weird bug! My guess at this point is the webpack minifier strips away some essential code. Try disabling it like this:
next.config.js:
does that remove the error?
joshua-lawrence commentedon Aug 2, 2023
@YousefED that didn't seem to work for me. Appears this is also being caused by Next SWC and is a known issue for tippy:
atomiks/tippyjs-react#379 (comment)
vercel/next.js#53151 (comment)
Looks like maybe a temporary fix is to disable SWC minification like this:
https://nextjs.org/docs/architecture/nextjs-compiler#minification
Sounds like the fix might also be available on the Next canary release, so I'll give that a go first.
joshua-lawrence commentedon Aug 2, 2023
Oops, realized I set the config incorrectly on webpack. @YousefED
With webpack minification disabled, the JavaScript heap runs out of memory during our build. Given this isn't a BlockNote issue, I'll look elsewhere for solutions that don't completely skirt minification and update if I find a workaround that's working for me. Thanks.
Edit:
Downgrading to Next 13.4.9 is working for us.
nabi-chan commentedon Sep 18, 2023
@joshua-lawrence It fixed on next@13.4.19! Also, I think it was fixed. thanks all for support :)
YousefED commentedon Sep 18, 2023
Great! Thanks for looping back @nabi-chan