NLeSC / create-react-app

Create React apps with no build configuration.
Other
1 stars 1 forks source link

travis build fails with missing module error #55

Open jspaaks opened 7 years ago

jspaaks commented 7 years ago

We ran a CI=1 yarn run e2e locally, which ran fine. However that was with node v.7, while Travis is using 4.8.1. So:

#locally:
nvm install 4.8.1
nvm use 4.8.1
npm install -g yarn
rm -rf node_modules
rm -rf packages/babel-preset-react-app/node_modules
rm -rf packages/create-react-app/node_modules
rm -rf packages/eslint-config-react-app/node_modules
rm -rf packages/react-dev-utils/node_modules
rm -rf packages/react-scripts/node_modules
rm -rf packages/tslint-config-react-app/node_modules
yarn cache clean
CI=1 yarn run e2e
# (verify that you get the same error)
cd packages/react-scripts/
npm install glob-all --save
cd ../..
CI=1 yarn run e2e
#  still gives error, but different package, jest-util
cd packages/react-scripts/
npm install jest-util --save
cd ../..
CI=1 yarn run e2e
# exits with code 0

(Also verified that node 7 didn't break)