Closed qruz-hq closed 1 year ago
@qruz-hq Sweet thanks for raising this, we'll make sure that this gets sorted out shortly!
Any news ?
@qruz-hq we are going to try and look at this next week.
@qruz-hq Here's a working nextjs v13 example! Lmk if that helps :) and then please close if it does. We'll check back next week and close if no response.
@qruz-hq & @taylorjdawson In NextJS you can solve by setting changing in NextJS config file:
swcMinify: false,
Closing as an example is provided. Please feel free to continue the conversation or reopen if issues persist. Thanks all!
So this was closed, is it going to actually be fixed in the next release of Next.js? We encountered this when going to production today too. Thanks!
Also, swcMinify: false
did allow the app to load, but now the onboarding dialog CSS's are playing up š
Update: False alarm, the styles seem to be caused by something else..
@qruz-hq & @taylorjdawson In NextJS you can solve by setting changing in NextJS config file:
swcMinify: false,
@GarrettJMU Thank you for this!
Why does this change with SWC compiler, fix this? And how did you stumble upon the fix here? Very curious about your thinking process š
@andyrobert3 I'd run into this error on something similarly related. From my understanding SWC just has some bugs they are working out. More reading here on something semi-related (and where I hit my bug in the past): https://github.com/vercel/next.js/issues/36221
This should be re-opened - the workaround by setting swcMinify
to false is not really a long term solution as some NextJS 13 features require it to be enabled (and the perf boost by using it is big).
I'm having the same problem with "next": "13.1.2", "@web3-onboard/core": "2.8.2", "@web3-onboard/react": "2.3.2",
@chinchaun what version of nodejs are you running?
The issue is with nodejs versions less <18. The simplest fix would be to run the latest most up to date version of node js which includes the fetch pollyfills. For those on nodeJs versions <18 we'll issue a fix and update the issue here once completed.
@taylorjdawson
@chinchaun what version of nodejs are you running?
node v16.16.0
We found the issue, seemed to be a problem with one of our dep packages. Can you confirm it is fixed on your end @chinchaun with the latest core/react/vue (which ever you use) package?
@Adamj1232 I can still see this issue on:
Hey @enzoferey - Im unable to reproduce - are you seeing the same error with the next13 example here - https://github.com/blocknative/web3-onboard/tree/develop/examples/with-nextjs-13
Hey @Adamj1232, sorry for the delay. Looking at the example, I noticed that I was missing to wrap the app with the provider on the _app
file -- which is actually not documented on the website isn't it ?
Once I used the provider passing in the value returning from the init
call it worked without having to use swcMinify: false
šš»
@enzoferey good call! We will update the docs to make sure that is clear! Thank you for the heads up!!
Found this issue with Coinbase "@web3-onboard/coinbase": "^2.2.0", and node 14.20 on AWS server. Local node version is 18.12.1 and works fine
@lamaro there are some built in polyfils on certain versions of node. Node v14 is out of scope for us, with v16 being the lowest supported by some packages
Closing as docs have been updated to reflect
Yes, after changing to node v18 and yarn instead of npm, everything works great. For some reason upgrading to node v18 wasn't enough. Yarn solved my issue. Tnx!
Current Behavior
On the dev environnement everything runs as it should, but on production (build) it throws a client-side error.
Everything worked as it should on NextJs 12. I only updated the NextJS version to the latest.
Expected Behavior
No response
Steps To Reproduce
What package is effected by this issue?
@web3-onboard/core
Is this a build or a runtime issue?
Build, Runtime
Package Version
latest (2.10.0)
Node Version
16
What browsers are you seeing the problem on?
No response
Relevant log output
this points to this part of the code on the built package, couldn't find much on the source, maybe it's a dependency issue ?