Skip to content

[Bug] mfsu 使用umi>3.5.8报错, Unhandled Rejection (ChunkLoadError): Loading chunk mf-dep_vendors failed. #7042

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

Closed
liangskyli opened this issue Jul 21, 2021 · 3 comments

Comments

@liangskyli
Copy link
Contributor

What happens?

mfsu,开发报错:
Unhandled Rejection (ChunkLoadError): Loading chunk mf-dep_vendors failed.
(missing: http://127.0.0.1:8001/vendors.1990e8e6.async.js)
while loading "./$CWD$/node_modules/umi/node_modules/@umijs/runtime" from webpack/container/reference/mf
while loading "./dva" from webpack/container/reference/mf
while loading "./antd-mobile/lib/toast/style" from webpack/container/reference/mf
while loading "./react" from webpack/container/reference/mf

Mini Showcase Repository(REQUIRED)

Please provide a repository using yarn create @umijs/umi-app then upload to your GitHub 请提供一个可复现的仓库,使用 yarn create @umijs/umi-app 创建,并上传到你的 GitHub 仓库

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

复现最小仓库:https://github.com/liangskyli/test

Context

  • Umi Version:>3.5.8
  • Node Version:12.14
  • Platform:windows,mac
@xiefengnian
Copy link
Contributor

开启 mfsu 不需要再配置 splitChunks

@PeakFish
Copy link

这个问题好像是个 bug ,mfsu 更新有问题,我写了一个有问题的代码 import { RequestConfig } from 'umi'; import 后面没加 type,然后就报错了,更新不过来,最后把 .umi 文件夹删掉 重新跑 好了。

@57coder
Copy link

57coder commented Nov 24, 2021

开启 mfsu 不需要再配置 splitChunks

可以解释下为啥吗

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

Successfully merging a pull request may close this issue.

4 participants