question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to overwrite conflicting files while creating new app

See original GitHub issue

Currently, creation of a new app will fail if the folder has files which will be added by create-react-app. screen shot 2017-07-13 at 1 46 04 am

It would be nice to have an option which allows us to let create-react-app overwrite those conflicting files. Simple initialisations like npm init and git init before CRA in an existing folder can lead to this failure via conflicts.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
goofballLogiccommented, Jul 23, 2018

Trying to run this in e.g. Cloud 9, I find that Cloud 9 continuously creates a .c9 folder (working area for the IDE) which reappears as soon as I remove it. Only alternative seems to be creating in a subfolder, then moving everything up a level 😕

1reaction
gaearoncommented, Jul 13, 2017

I’ll close this but filed https://github.com/facebookincubator/create-react-app/issues/2780 for better error message. Thanks for explaining!

Read more comments on GitHub >

github_iconTop Results From Across the Web

pacman "exists on filesystem" error - arch linux
From the man: Using --force will not allow overwriting a directory with a file or installing packages with conflicting files and directories.
Read more >
How to force install conflicting packages with pacman ...
There is --overwrite option, but it is irrelevant to my case. And there are no actually conflicting files in conflicting packages that I...
Read more >
Conflict Resolution in Citrix Files - Citrix Customer Support
Under Conflict Resolution, select a default option for conflicted files: Prompt Always, Overwrite, Discard, and Save a Copy. We recommend Prompt Always to ......
Read more >
Troubleshoot common coauthoring errors - Microsoft Support
Upload Failed: Resolve Conflict · Select Resolve. · Select Next on the Conflicts tab to navigate through each change. · Accept or reject...
Read more >
dpkg error: "trying to overwrite file, which is also in..."
Warning: This answer is dangerous and may lead to a broken system (because this will effectively install the package but new problems may...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found