Replies: 1 comment 1 reply
-
According to the docs, you'd need to create webpack config the app directory named as config-overrides.js. The file should have the following config: const webpack = require("webpack");
module.exports = function override(config) {
const fallback = config.resolve.fallback || {};
Object.assign(fallback, {
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
assert: require.resolve("assert"),
http: require.resolve("stream-http"),
https: require.resolve("https-browserify"),
os: require.resolve("os-browserify"),
url: require.resolve("url"),
});
config.resolve.fallback = fallback;
config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: "process/browser",
Buffer: ["buffer", "Buffer"],
}),
]);
config.ignoreWarnings = [/Failed to parse source map/];
config.module.rules.push({
test: /\.(js|mjs|jsx)$/,
enforce: "pre",
loader: require.resolve("source-map-loader"),
resolve: {
fullySpecified: false,
},
});
return config;
}; You can check out their Integration Builder to help you get started with the setup. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have encountered myself with a whole new error to which I cannot find a viable solution. I am implementing an application on Ionic using VueJS framework. I've tried configuring the Webpack with a stream and crypto fallbacks. This solution allows me to compile the project without errors, but prevents me from accessing the Web3Auth integrated login. What can this be due to? I need help ASAP. Thank you very much !
Beta Was this translation helpful? Give feedback.
All reactions