Skip to content

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

Closed
@PrajjwalDatir

Description

@PrajjwalDatir

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions