TypeError: MiniCssExtractPlugin is not a constructor

There is an open issue for this on the create-react-app repository. It looks like this comment has a temporary fix of adding the following to file package.json: The below works if you’re using Yarn: “resolutions”: { “mini-css-extract-plugin”: “2.4.5” }, Use the command below for npm: npm i -D –save-exact mini-css-extract-plugin@2.4.5 Update: As of January 17, … Read more

Webpack-dev-server doesn’t generate source maps

Use webpack-dev-server -d -d is shorthand for –debug –devtool source-map –output-pathinfo. output-pathinfo adds comments to the generated bundle that explain what module/files are included in what places. So in the generated code, the comment is added to this line of code: require(/* ./test */23) which says that 23 is pointing to the test module. This … Read more

How to watch index.html using webpack-dev-server and html-webpack-plugin

The problem is that index.html is not being watched by Webpack. It only watches those files that are “required” or “imported” somewhere in your code and the loaders are testing for. The solution has two parts. First require the index.html file in your entry point. Technically, you can require it anywhere in your application, but … Read more

babel vs babel-core vs babel-loader vs babel-preset-2015 vs babel-preset-react vs babel-polyfill

babel Babel doesn’t do anything,It basically acts like const babel = code => code; by parsing the code and then generating the same code back out again. You will need to add some plugins for Babel to do anything like transpiling es6,JSX. babel-core if you want to use babel in your real project, you need … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)