-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using react-scripts from parent folder results in strange behaviour #1240
Comments
Why did you close this? Is it solved? |
I clicked the button by mistake |
How can we solve this? Would changing this to be based on |
Just tried that, changing I've found switching from npm to yarn significantly improves installation times making the original solution unnecessary ie, this issue no longer affects me. The issue remains but I'm not personally motivated to fix it anymore. But thanks for the help (& sorry I took ages to respond)! |
Keep seeing "close" in OctoDroid + thinking it means "back" |
Duplicate of #556. Going to close this. 😄 |
Background
I'm building a library with several examples, these examples use create-react-app but I don't want people to waste lots of time by repeatedly installing react-scripts. So I moved the react-scripts dependency to the project root.
Steps to reproduce
Run the following inside an empty folder:
Navigate to localhost:3000 and you might see something like:
Which can be fixed by moving
examples/counter/public/index.html
toexamples/counter/index.html
(though some additional errors are reported in the console likeURIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'
).This seems like behavior from an older version of
react-scripts
but I'm not sure.Environment
The text was updated successfully, but these errors were encountered: