Skip to content Skip to sidebar Skip to footer

Error While Running A New Created React Js App In Webstorm

I have just created a new web app using WebStorm; it comes with a template and I haven't added any new code, but when I try to run it it shows this Error: 'E:\WebStormData\WebStor

Solution 1:

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

Post a Comment for "Error While Running A New Created React Js App In Webstorm"