Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nextjs server error : "could not find the module"

Next version: 13.4.12 Node version: 18.17.0

When I create a next app with "npx create-next-app@latest" and npm run dev immediately after creating it, I am getting the following error.

Server Error Error: Could not find the module "C:\Users\Kerem\Desktopudb-next\node_modules\next\dist\client\components\app-router.js#default" in the React Client Manifest. This is probably a bug in the React Server Components bundler. This error happened while generating the page. Any console logs will be displayed in the terminal window.

You can also check the image.error image

like image 993
Kerem İlhan Avatar asked May 29 '26 17:05

Kerem İlhan


1 Answers

In my case, add "use client" to ts file

like image 190
安仲根 Avatar answered Jun 02 '26 19:06

安仲根



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!