Closed xiaogit00 closed 1 year ago
Are you forced to use v14.7.0
? The official dashboard is using this lib and running with node version v16.4.1
and react v18.2.0
. We didn't find any problem with that configuration.
If you are forced to use v14.7.0
I can try to replicate it locally and look for a fix, the errors seams to be from some of the external libs =/
ah I see @hanchon! Nope no reason for me using node v14.7.0, just didn't upgrade it 😁 will upgrade it and give it a go.
thanks man
hey @hanchon, I upgraded to node version 16.4.1 and the issue still persists.
hi @xiaogit00, you should try to customize your webpack config. try to add following lines:
{
resolve: {
fallback: {
crypto: false,
stream: false,
assert: false,
path: false,
},
},
}
Yes, it's an issue with webpack 5 https://stackoverflow.com/questions/64557638/how-to-polyfill-node-core-modules-in-webpack-5 I should work fine if using next, because it doesn't depend on react-script
Hey @hanchon,
Was trying out the Evmosjs within a React project - but I didn't get too far. Not too sure what the issue is. After installing
npm i evmosjs
, I imported the following:And the browser shows the following error messages:
Im using node version 14.7.0, and react version 18.2.0.