Next JS Module not found: Can't resolve '@/path/to/module'

I made a dashboard using next JS by following the tutorial on YouTube. everything was smooth until I turned off the laptop and turned it back on, when I ran “npm run dev” I got the error:

Module not found: Can't resolve '@/path/to/module'
Fast Refresh is limited to performing a full reload. Read more: https://nextjs.org/docs/messages/fast-refresh-reload
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: ENOENT: no such file or directory, rename 'D:\LEARNING\React\nextadmin\.next\cache\webpack\client-development-fallback\0 .pack.gz_' -> 'D:\LEARNING\React\nextadmin\.next\cache\webpack\client-development-fallback\0.pack.gz'

The application cannot resolve modules imported using the alias “@”.
What happened? and how to solve it? I didn’t terminate the terminal before turning off the laptop, does it have any effect?

Thank you
Best Regards

@rald This forum isn’t for general development help, but for assistance with Netlify’s systems.

Since your issue appears related to nextjs/webpack/npm etc you could ask the Next.js community:

1 Like

Hi @rald nathan’s right. This question appears to be outside the scope of support, but I’m happy to leave your thread open so others can chime in on your web dev related query.