How can I fix the “BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default" error?
this is my webpack set up that works. you should install all the packages that listed in fallback: // const path = require(“path”); const path = require(“path”); const HtmlWebpackPlugin = require(“html-webpack-plugin”); const CopyWebpackPlugin = require(“copy-webpack-plugin”); const webpack = require(“webpack”); module.exports = { mode: “development”, target: “web”, entry: [“regenerator-runtime/runtime”, “./src/index.js”], output: { filename: “bundle.js”, path: path.join(__dirname, … Read more