We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
net
Hi,
I'm using siwe with nextjs and ethers-v6. I got error message when I create SiweMessage
SiweMessage
const message = new SiweMessage({....})
Below is the error message:
error - ./node_modules/ethers/node_modules/ws/lib/sender.js:5:0 Module not found: Can't resolve 'net' Import trace for requested module: ./node_modules/ethers/node_modules/ws/index.js ./node_modules/ethers/lib.commonjs/providers/ws.js ./node_modules/ethers/lib.commonjs/providers/provider-websocket.js ./node_modules/ethers/lib.commonjs/providers/index.js ./node_modules/ethers/lib.commonjs/ethers.js ./node_modules/ethers/lib.commonjs/index.js ./node_modules/siwe/dist/utils.js ./node_modules/siwe/dist/siwe.js
According to https://flaviocopes.com/nextjs-fix-module-not-found/ , it seems this error is from Next.js is trying to run backend code in the frontend.
The text was updated successfully, but these errors were encountered:
have you included node-polyfills?
node-polyfills
Sorry, something went wrong.
node-polyfill-webpack-plugin solves the problem partially. Why can't you just add all the missing polyfills to the package?
node-polyfill-webpack-plugin
No branches or pull requests
Hi,
I'm using siwe with nextjs and ethers-v6. I got error message when I create
SiweMessage
Below is the error message:
According to https://flaviocopes.com/nextjs-fix-module-not-found/ , it seems this error is from Next.js is trying to run backend code in the frontend.
The text was updated successfully, but these errors were encountered: