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