Christianq010 / netflix_landing-page

The Netflix.com landing page built via React 16 and Styled-Components. Build deployed via Surge.sh for preview.
https://netflix-lp-clone.surge.sh
38 stars 17 forks source link

Cannot find module start.js in scripts/start.js #1

Open vogonyo opened 6 years ago

vogonyo commented 6 years ago

This happens when running command start.js

giorgioriccardi commented 6 years ago

How did we get in package.json to node scripts/start.js https://github.com/Christianq010/netflix_landing-page/blob/master/package.json#L50

"scripts": { "start": "node scripts/start.js", "build": "node scripts/build.js", "test": "node scripts/test.js --env=jsdom" from react-scripts start https://github.com/Christianq010/netflix_landing-page/commit/e846914d81e75ec5051945d3400c8d5db1d6d08f#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R10 "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" ?

noth8 commented 5 years ago

@giorgioriccardi, the problem is in .gitignore file. The author of this repo added scripts dir to ignore and then upload changes. So you can't start/build/test project. This is another reason why not ejecting from create-react-app.

To fix this :

  1. Create a new project with create-react-app.
  2. Move src from this repo to the newly created project.
  3. Run yarn add react-icons@^2.2.7 node-sass styled-components
  4. Now you can launch project yarn start