[Solved] Error while running a new created React JS app in WebStorm


From the error message I can see that you are trying to run your React component with Node.js. Strange idea. React applications are run in browser, this is a client-side code, so you have to build your application, start the server it is hosted on (in applications created using File | New | Project… | React App, you should normally run npm run start to build the app and start dev server) and then run/debug it in browser using JavaScript Debug Run configuration.

Please see https://blog.jetbrains.com/webstorm/2017/01/debugging-react-apps/ for more information about debugging react apps in WebStorm

solved Error while running a new created React JS app in WebStorm