I have installed a new package ('react-router-dom') and now my project doesn't start.
I get this warning:
How can I resolve this problem? Thanks for the help!
the current version (don't support webpack4) of this package does not work with html-webpack-plugin v4
Please refer this issue
or
you can try yarn add preload-webpack-plugin@3.0.0-beta.3
If the above method doesn't works:
If you ejected from create-react-app
and are getting this error upon yarn build
, make sure the InterpolateHtmlPlugin
line comes after the HtmlWebpackPlugin
line in your webpack config file(s):
module.exports = {
//...
plugins: [
new HtmlWebpackPlugin({
// ...
}),
new InterpolateHtmlPlugin(env.raw),
//..
]
}