When we used using webpack-4 with latest configuration we came across above failure You can reproduce the error using configuration something similar to https://github.com/mohanmca/simple-webpack