0

Getting the 'propTypes' is not defined no-undef

I have found that the issue is because of ESLint version 4.* And we have to change it to ESLint version 3.* .

I have created my react app by using the create-react-app which installs the webpack , ESLint and babel by default .

I am not sure how to install the ESLint version 3.* and remove the current version .

sheldonzy
  • 5,505
  • 9
  • 48
  • 86
Shyam
  • 5,292
  • 1
  • 10
  • 20

1 Answers1

0

I think you need to eject the app to make that change. create-react-app configuration can only be changed after you eject the app.

lavish
  • 2,154
  • 1
  • 10
  • 9
  • Yes @lavish i came across that somwhere , but am not sure how to do that . I am just a beginner in react . I could see that the eslint is in the package-lock.json and the version is "4.10.0" – Shyam Nov 04 '17 at 08:39
  • @Lars [link] (https://stackoverflow.com/questions/45692537/proptypes-is-not-defined) . I could see that you have resolved the issue , can you write down the steps here . It will be of great help . – Shyam Nov 04 '17 at 08:56