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
webpack5 have moved plyfills for node.js. However web3.js use polyfill. So You better fix this.
I have solved problems on webpack by these command:
npm install node-polyfill-webpack-plugin
Then, add the plugin in vite.config.ts as follows.
const { defineConfig } = require("@vue/cli-service"); const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); module.exports = defineConfig({ transpileDependencies: true, configureWebpack: { plugins: [new NodePolyfillPlugin()], }, });
NOTE: refer to thie website: https://vue-dapp-docs.netlify.app/configurations.html#vue-cli
The text was updated successfully, but these errors were encountered:
thx! I recently will fix that's query.
Sorry, something went wrong.
No branches or pull requests
webpack5 have moved plyfills for node.js. However web3.js use polyfill. So You better fix this.
I have solved problems on webpack by these command:
npm install node-polyfill-webpack-plugin
Then, add the plugin in vite.config.ts as follows.
NOTE: refer to thie website: https://vue-dapp-docs.netlify.app/configurations.html#vue-cli
The text was updated successfully, but these errors were encountered: