im new to nextjs and my project was running fine untill i dont know what happened, just getting these errors:
./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[2]!./styles/Navbar.css
Error: Cannot find module 'nanoid/non-secure'
Require stack:
- C:\WEBd\watchthisnext\node_modules\postcss\lib\input.js
- C:\WEBd\watchthisnext\node_modules\postcss\lib\map-generator.js
- C:\WEBd\watchthisnext\node_modules\postcss\lib\lazy-result.js
- C:\WEBd\watchthisnext\node_modules\postcss\lib\postcss.js
- C:\WEBd\watchthisnext\node_modules\next\dist\build\webpack\config\blocks\css\index.js
- C:\WEBd\watchthisnext\node_modules\next\dist\build\webpack\config\index.js
- C:\WEBd\watchthisnext\node_modules\next\dist\build\webpack-config.js
- C:\WEBd\watchthisnext\node_modules\next\dist\server\dev\hot-reloader.js
- C:\WEBd\watchthisnext\node_modules\next\dist\server\dev\next-dev-server.js
- C:\WEBd\watchthisnext\node_modules\next\dist\server\next.js
- C:\WEBd\watchthisnext\node_modules\next\dist\server\lib\start-server.js
- C:\WEBd\watchthisnext\node_modules\next\dist\cli\next-dev.js
- C:\WEBd\watchthisnext\node_modules\next\dist\bin\next
Please help me fix this. I have no clue why this happened.