0

I am trying to update firebase to 4.5.0 but it is giving me PEER DEP error:

UNMET PEER DEPENDENCY webpack@2 || 3

How do update webpack?

my webpack is webpack@1.14.0

Note: I am using create-react-app

Noman Ali
  • 3,160
  • 10
  • 43
  • 77

1 Answers1

0

You'll have to make some changes in your webpack.config.js file because there are some major changes in webpack2. For example, module.loaders is now module.rules. You can take help from the webpack's website. Here is that specific link Migrating to webpack2

Arslan Tariq
  • 2,478
  • 2
  • 22
  • 45
  • Please read the **Note** at end of question. I am using `create-react-app`. That means i should not modify **webpack.config.js** file. – Noman Ali Oct 13 '17 at 06:41
  • You can modify that. This will help: https://medium.com/@kitze/configure-create-react-app-without-ejecting-d8450e96196a But I recommend that you eject the app. And customize according to your needs. – Arslan Tariq Oct 13 '17 at 07:09