The next app when I run the npm run dev command is giving an error as follows:
$→��m��mo�L�D��;�%g�?w��ŷ↓�▬��ovH0��a�5��*�ؒ��l͛�S�iy☺�r�O7����%L]��%��∟�hk
^
SyntaxError: Invalid or unexpected token
at wrapSafe (internal/modules/cjs/loader.js:988:16)
at Module._compile (internal/modules/cjs/loader.js:1036:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object.<anonymous> (D:\Projects\next learn\next-whatsapp\whatsapp-clone\node_modules\caniuse-lite\dist\unpacker\agents.js:5:20)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
I don't know why its happening. I have checked all of my code and I can't really find any problem. Also I tried running npm i and then npm run dev but that didn't work as well.
The app was working fine before but after night I stopped the localhost and closed the PC and now after opening it back again this problem is occurring.
Please try removing the node_modules folder and re-running npm install. Somehow your node_modules folder is likely to have gotten corrupted. As Bravo notes, you should also check your hard drive's integrity as it could possibly have been caused by a hardware issue.