npm run eject silently fails when a config folder already exist
See original GitHub issueDescription
npm run eject
silently fails when a config folder already exist.
Expected behavior
It’s a common behavior to have a /config
folder at the base of a project.
npm run eject
should throw an error or even better, “merge” new files with existing ones.
Actual behavior
➜ react-starter git:(master) mkdir config
➜ react-starter git:(master) npm run eject
> react-scripts eject
Are you sure you want to eject? This action is permanent. [y/N]
y
Ejecting...
➜ react-starter git:(master)
Environment
node -v
: 5.0.0
npm -v
: 3.3.6
Operating system: macOS Sierra
Reproducible Demo
- Clone the repo
mkdir config
npm run eject
Thanks 🙏
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
undo 'npm run eject' in react
I was trying to test the performance of my React app(created with create-react-app) with react CDN script and i did 'npm run eject'...
Read more >treem_22
To update an existing project to a new version of react-scripts , open the changelog, find the version you're currently on (check package.json ......
Read more >The React Scripts Start Command – Create-React-App ...
The script generates the required files and folders to start the React application and run it on the browser. This allows you to...
Read more >pnpm run
Aliases: run-script. ... You can now run that script by using pnpm run watch ! ... that do not share the same name...
Read more >Everything you need to know about react-scripts
What is a script? start; test; build; eject ... Every configuration required for the React app comes through the react-scripts package. Now ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
All’s good, thanks 👍
Me too where is the file??
config
already exists in your app folder.