Open raviadi12 opened 11 months ago
Webpack 5 remove node core modules from bundle by default
Solutions:
npm install node-polyfill-webpack-plugin --save-dev
Then add it to your webpack config as follow.
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
module.exports = {
// ...
plugins: [new NodePolyfillPlugin()],
}
https://thecodersblog.com/polyfill-node-core-modules-webpack-5
My projects is using create-react-app, but i got this error when i tried to
npm run start
Here's the error:
Tried to install path, didn't resolve the issue