-
-
Notifications
You must be signed in to change notification settings - Fork 554
When I try show slash menu on production, always shows e.fn is not a function error #276
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
Comments
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 |
Just wanted to add that we are also encountering this issue in our production build! |
We are also facing this same issue. Looking forward to the rearchitecture! |
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 |
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.. |
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? |
@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) Looks like maybe a temporary fix is to disable SWC minification like this: module.exports = {
swcMinify: false,
} 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. |
Oops, realized I set the config incorrectly on webpack. @YousefED Edit: Downgrading to Next 13.4.9 is working for us. |
@joshua-lawrence It fixed on [email protected]! Also, I think it was fixed. thanks all for support :) |
Great! Thanks for looping back @nabi-chan |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
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
(I added some source map for more clue)
To Reproduce
pnpm build && pnpm start
Misc
The text was updated successfully, but these errors were encountered: