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

63 views Asked by At

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

1

There are 1 answers

0
arpandhakal On BEST ANSWER

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