[ src + public ] folders are never generated
See original GitHub issueHi 😃
“Node”: 12.14.1 “npm”: 6.13.4 “react-scripts”: “3.3.0”
I completely unistalled create-react-app from npm global scope .
From the command prompt in Windows 10 i am running :
npx create-react-app my-app
But all i get is the below :
No matter how many times i run it i never get src folders 😦
Please give me a hint why this might happen .
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:7
Top Results From Across the Web
create-react-app doesn't generate public and src folders thus ...
I still have no idea what was the reason but I got it working doing these: -uninstalled create-react-app using npm uninstall -g create-react-app ......
Read more >Solving the React Error: Not Picking Up CSS Style | Pluralsight
This error is generated because the compiler is only able to import files from the src folder. Here, the CSS file is saved...
Read more >How to Build a React Project with Create React App in 10 Steps
public is a folder that we can use to store our static assets, such as images, svgs, and fonts for our React app....
Read more >How To Set Up a React Project with Create React App
The src/ directory contains the React JavaScript code for your project. Most of the work you do will be in that directory.
Read more >Using the Public Folder - Create React App
Only files inside the public folder will be accessible by %PUBLIC_URL% prefix. If you need to use a file from src or node_modules...
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 FreeTop 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
Top GitHub Comments
Update on what the issue was for me, not sure if anyone else will find this helpful though:
I use WSL but have yarn installed on my Windows side of things, and somehow my
.yarn
folder on my Windows filesystem made it into thePATH
of my Ubuntu installation. Removing the.yarn
folder from myPATH
, running annpm uninstall -g create-react-app
, then runningnpx create-react-app test
caused everything to work properly.I had the same problem. It helped me: https://github.com/facebook/create-react-app/issues/8097