Closed brunoscopelliti closed 1 year ago
Probably is related with this one https://github.com/aralroca/next-translate-plugin/issues/30
Can you try if this solves the problem? https://github.com/aralroca/next-translate/blob/master/docs/hoist-non-react-statics.md
I can confirm this is likely related to #30; in fact I had the same problem also with ReactQueryDevtools. I did try what you suggested here, but unfortunately it didn't change nothing.
I found the error 👍 thanks to report it
@brunoscopelliti Should be fixed in next-translate-plugin
version 2.3.0-canary.5
. Would be great if you give here some feedback if is already solved. Thanks! 😊
Thank you for the quick action. Would be glad to help testing it, but canary.5
isn't published on npm yet.
Could you publish it?
Is plublished! https://www.npmjs.com/package/next-translate-plugin?activeTab=versions !
next-translate
: 2.3.0-canary.3next-translate-plugin
: 2.3.0-canary.5Ah, sorry, you were right - it's likely I tried to install 2.3.0-canary.5 also for next-translate (that doesn't exist). Anyway, I can confirm now the new version fixes this issue (and also the one with ReactQueryDevtools). Thank you
Sounds good, thanks for the feedback
next-translate-plugin
causes error when used withreact-hot-toaster
in new next.js app folder. It looks likenext-translate-plugin
swaps the imports in the bundle.I've created a fresh new repository (
npx create-next-app@latest
) in which you can replicate the issue. I'm attaching it here: bug-repro.zip. Follow these steps:npm i
npm run dev
npm run dev
:Despite the error, the page is loading fine. In fact, now, you should see something like:
It looks like next-translate is swapping the import in the bundle... and what should have been the default export of the
react-hot-toaster
library is something completely different.