"Next.js 12+ Front-end Not Automatically Compiling on WSL"
Unanswered
timogo posted this in #help-forum
timogoOP
Context:
I'm using Next.js 12+ on my primary PC with WSL. Changes to the front-end don't auto-compile with next dev, but the API works fine. The same setup on another PC (without WSL) works perfectly.
Issue:
Front-end changes aren't reflected in real-time. I have to manually recompile to see updates.
What I Expect:
Auto-compilation of front-end changes without manual recompilation.
What I've Tried:
- Verified
- Ran
- Deleted
- Tried different Node.js versions.
- Tested on another PC (without WSL) and it works fine.
Dependencies:
Here are the dependency details (obtained using
I'm using Next.js 12+ on my primary PC with WSL. Changes to the front-end don't auto-compile with next dev, but the API works fine. The same setup on another PC (without WSL) works perfectly.
Issue:
Front-end changes aren't reflected in real-time. I have to manually recompile to see updates.
What I Expect:
Auto-compilation of front-end changes without manual recompilation.
What I've Tried:
- Verified
react and react-dom are up to date.- Ran
npm install.- Deleted
node_modules and reinstalled dependencies.- Tried different Node.js versions.
- Tested on another PC (without WSL) and it works fine.
Dependencies:
Here are the dependency details (obtained using
npx next info):Operating System:
Platform: linux
Arch: x64
Version: #1 SMP Fri Mar 29 23:14:13 UTC 2024
Available memory (MB): 7790
Available CPU cores: 12
Binaries:
Node: 20.15.1
npm: 10.7.0
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 14.2.5 // Latest available version is detected (14.2.5).
eslint-config-next: N/A
react: 18.3.1
react-dom: 18.3.1
typescript: N/A // ^5 on `package.json`
Next.js Config:
output: N/A