reactjsbundlerweb-frontendweb-deployment-project

Currently I am learning react, trying to create react app, when I try to run "npx parcel index.html" I am getting following error


enter image description here I am getting this error please tell me where I goes wrong

when I try to run command: npx parcel index.html it says are you meant to say App.js if I put it like App.js it will ignore html file of my project


Solution

  • The error is suggesting that your app.js file could not be located inside the ./src folder inside index.The folder is unavailable as seen in the image. Please change your import from ./src/App.js to ./App.js