Open xiaoqufengdi opened 10 months ago
I had the same issue, apparently some components only work client side.
Like what @michel-paiva said. Can you verify that the 'use client'
directive is being used?
https://nextjs.org/docs/app/building-your-application/rendering/client-components#using-client-components-in-nextjs
Antd is a third-party package, not my component.
Antd is a third-party package, not my component.
Try adding the 'use client'
directive to the top of all files that import Antd
Link to the code that reproduces this issue
https://github.com/xiaoqufengdi/mortgageCalculator.git
To Reproduce
1、 add 'antd' into my project. 2、 I use a component of antd such as Layout 3、 It's report a bug.
Current vs. Expected behavior
It's doesn't work. Internal error: Error: Could not find the module "~\node_modules.store\antd@5.12.7\node_modules\antd\es\index.js#Layout#Footer" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
Module resolution (CJS / ESM, module resolving)
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response