I have Intellij IDEA Ultimate IDE (2020.2.4) and I created a new React App project using npx create-react-app.
npm version is 6.14.9 and node.js version is v14.15.1.
After adding all the needed files I executed "npm start" and the pages ran successfully on chrome.
However, when I try to debug the app I encounter a few problems.
I added to package.json the following property:
but now I get another error:
SyntaxError: Unexpected token '<'
I don't understand why I get it, without debugging using "npm start" the web page works well.
Looks like something related to Debugger configuration.
** When I use VsCode for debugging (instead on IntelliJ) everything works as expected.
Does anyone know how I can fix it ?