0

I have installed a new package ('react-router-dom') and now my project doesn't start. I get this warning: t work

How can I resolve this problem? Thanks for the help!

5eb
  • 14,798
  • 5
  • 21
  • 65
code
  • 71
  • 1
  • 2
  • 7

1 Answers1

0

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),
    //..
  ]
}
sidverma
  • 1,159
  • 12
  • 24