90
rated 0 times
[
97]
[
7]
/ answers: 1 / hits: 41147
/ 6 Years ago, mon, april 9, 2018, 12:00:00
I set up a create-react-app
and I'm trying to run App.js on localhost, but upon doing yarn start
I get the following error message:
22:23 $ yarn start
yarn run v1.3.2
$ react-scripts start
Could not find a required file.
Name: index.html
Searched in: /Users/-----/Desktop/---/----/hw/HW-REPO/hw-name/public
error Command failed with exit code 1.
I'd already installed yarn with yarn install
, so I'm not sure if there's something wrong with my code or with the file structure.
Here's the file structure:
app-name
-client
--public
---index.html
---manifest.json
--src
---Components
----various folders
---App.js
---App.test.js
---index.js
-database
-model
-gitignore
-package-lock.json
-package.json
-server.js
-yarn.lock
More From » reactjs