Next.js Discord

Discord Forum

Mac OS to Windows 11 using NextJS

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
Hi

I just switched from mac os to windows 11, and already downloaded node.js, npm and vscode on my laptop. But every time I create a new next.js project. I get the following error:

PS D:\CODING\next-app-stack> npm run dev next-app-stack@0.1.0 dev next dev ▲ Next.js 14.0.3 - Local: http://localhost:3000 ✓ Ready in 3.8s ○ Compiling / ... ✓ Compiled / in 3.2s (501 modules) ✓ Compiled in 268ms (235 modules) <w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies ✓ Compiled /favicon.ico in 221ms (506 modules) <w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies ✓ Compiled /not-found in 282ms (511 modules) <w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies <w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies <w> [

When I run the app, it does appear on my localhost but every time I make a change it does not appear in my browser. I already tried deleting node models and next folder. But the error keeps appearing.
I also already tried npm run build

Why does it happen? Im new to windows, in mac os i I didn't get that error.

Thanks!

1 Reply

Toyger
remove node_modules, lockfile and .next folder
install dependencies again and run app