-1

I'm trying to create a project using React but it's impossible using WebStorm, it doesn't even run. ESLint does not recognize.

  1. I create a new React project using Node.js v16:

enter image description here

  1. React project created successfully:

enter image description here

  1. Does not run as ESLint does not recognize the constructor

enter image description here

  1. Here's the error stack:

enter image description here

NOTE: I already have ESLint installed globally (npm i -g eslint)

P.S. I've been a WebStorm user for at least 5 years, always working with Angular, now I need to work with React. I hope I don't have to switch tools due to these details.

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Biruel Rick
  • 776
  • 1
  • 8
  • 17
  • I've never had problems with using React with Webstorm. Try creating a blank Node project and create the app manually with CRA. – code Jan 07 '22 at 22:41
  • 3
    That is a WebStorm ESLint plugin problem. In newer versions of WebStorm, it should be fixed. Try upgrading your IDE. – sean-7777 Jan 07 '22 at 22:49
  • I tried too (npx create-react-app myapp). The code is generated with success, but when I open the folder/project on Webstorm, I catch the ESlint Error when I open the index.js file. – Biruel Rick Jan 07 '22 at 22:50
  • Thanks @sean-7777, I updated my Webstorm and now it's working fine. – Biruel Rick Jan 07 '22 at 22:59

1 Answers1

0

I updated my Webstorm as @sean-777 suggested and now it's working fine!

Biruel Rick
  • 776
  • 1
  • 8
  • 17