Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 使用 pnpm 时,MFSU 无法在 antd-pro 上运行 #10893

Closed
fz6m opened this issue Apr 1, 2023 · 5 comments · Fixed by #10984
Closed

[Bug] 使用 pnpm 时,MFSU 无法在 antd-pro 上运行 #10893

fz6m opened this issue Apr 1, 2023 · 5 comments · Fixed by #10984
Assignees

Comments

@fz6m
Copy link
Member

fz6m commented Apr 1, 2023

What happens?

mfsu + pnpm + antd-pro 时,无法启动项目,可以稳定复现。

Mini Showcase Repository(REQUIRED)

https://github.com/MoeYc/ant-design-charts-demo-for-reproduce-mfsu-name-too-long-bug

How To Reproduce

请先建立一个多级的文件夹深度,例子:/Users/xxx/Documents/development/code/umi-4/demo-check (项目存放位置的绝对路径不得少于 该深度和长度 ),然后在这下面克隆项目:

  1. pnpm i

  2. pnpm dev

报错:

error - Error: ENAMETOOLONG: name too long, open '/Users/xxx/Documents/development/code/umi-4/demo-check/ant-design-charts-demo/node_modules/.cache/mfsu/mf-va__Users_ryu_Documents_development_code_umi-4_demo-check_ant-design-charts-demo_node_modules_.pnpm_registry.npmjs.org+umi@4.0.63_@babel+core@7.21.4_@types+react@18.0.20_eslint@8.35.0_postcss@8_634z2s2yvxe2ffznuhx5c3x6za_node_modules_umi_client_client_plugin.js.js'

Context

  • Umi Version: v4.0.63
  • Node Version: 18.x
  • Platform: macos

关联 issue

目前如何自己解决

关闭 mfsu: false

@fz6m fz6m added the type(mfsu) label Apr 1, 2023
@lyfer233
Copy link

lyfer233 commented Apr 8, 2023

确实,我也是使用pnpm安装antd-pro时会稳定复现。换用npm就没有问题了

@stormslowly stormslowly self-assigned this Apr 10, 2023
@stormslowly
Copy link
Member

哈哈 学习到了 文件名上限 255 个字节

fixing ~

@leshalv
Copy link

leshalv commented Apr 13, 2023

我这里也出现这个问题了

@fz6m
Copy link
Member Author

fz6m commented Apr 13, 2023

在没修复前,请参照正文 目前如何自己解决 操作。

@yuyihan666
Copy link

啥情况啥情况,解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants