Skip to content

Create React App Not Working? WSL2 - [workaround avaliable] #10254

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

Closed
PrajjwalDatir opened this issue Dec 16, 2020 · 1 comment
Closed

Create React App Not Working? WSL2 - [workaround avaliable] #10254

PrajjwalDatir opened this issue Dec 16, 2020 · 1 comment

Comments

@PrajjwalDatir
Copy link

Describe the bug

On WSL 2 when I create an app using create-react-app and use npm start the app doesn't reload when I edited and saved file.

i.e. Hot Reloading doesn't work

Which terms did you search for in User Guide?

I refer all the official guides and Stackoverflow.
I found a workaround - by shifting my Project folder to Linux File System i.e.
\\wsl$\DISTRO_NAME , it works. ( workaround but not a solution )

Refer this if anyone haven't yet found the workaround,
https://prajjwaldatir.medium.com/create-react-app-not-working-62fc9fc4368b

Environment

Windows 10
WSL2

Steps to reproduce

Create an App using npx create-react-app test1 on windows file system.
Run following commands through WSL2
cd test1
npm start

Expected behavior

locahost 3000 running perfectly with Hot Reloading working for my projects located in Windows File System.

Actual behavior

locahost 3000 running perfectly with Hot Reloading NOT working for my projects located in Windows File System.

@PrajjwalDatir PrajjwalDatir changed the title Create React App Not Working? WSL2 - [Solved] Create React App Not Working? WSL2 - [workaround avaliable] Dec 16, 2020
@PrajjwalDatir
Copy link
Author

Issue got solved via #10253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant