fuma-nama / fumadocs

The beautiful docs framework with Next.js. Alternative to Nextra
https://fumadocs.vercel.app
MIT License
1.89k stars 115 forks source link

Module not found: Package path ./home-layout is not exported from package #1088

Closed inrhor closed 2 days ago

inrhor commented 2 days ago

To Reproduce

1、使用pnpm add fumadocs-mdx/ui/core@latest,pnpm install等命令升级 2、使用 pnpm build 构建项目。 3、构建过程中出现错误。

Current vs. Expected behavior

我在构建项目时遇到了一个问题。错误信息显示 ./home-layout 模块没有从 fumadocs-ui 包中导出,导致构建无法成功完成。

以下是我遇到的完整错误信息:

Module not found: Package path ./home-layout is not exported from package D:\AI\Code\React\iplugin\node_modules\fumadocs-ui (see exports field in D:\AI\Code\React\iplugin\node_modules\fumadocs-ui\package.json)

https://nextjs.org/docs/messages/module-not-found

Provide environment information

iplugin@1.0.0 | ISC | deps: none | versions: 1

dist
.tarball: https://registry.npmmirror.com/iplugin/-/iplugin-1.0.0.tgz
.shasum: 7fceadcbcd06420ea88bf556642caff57fa722fb
.integrity: sha512-Dx13wHMSSkdxKWqGsvXYMqmuqomUR4pR9cV3Wqh3UfeJMEsgxM9RY2omeNs3zNd6+32xgydNJsZlV4DPzytW+Q==
.unpackedSize: 263 B

maintainers:
- idanyer <386039456@qq.com>

dist-tags:
latest: 1.0.0

published over a year ago by idanyer <386039456@qq.com>

Which area(s) are affected? (Select all that apply)

Core

Additional context

No response

fuma-nama commented 2 days ago

You can read the v14 blog post about breaking changes and migration guide:

https://fumadocs.vercel.app/blog/v14