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] 使用 ant-pro-v5 初始化项目,启动时报错“Cannot find module: 'isomorphic-form-data' in swagger-ui-react” #8820

Closed
niexq opened this issue Jul 28, 2021 · 7 comments

Comments

@niexq
Copy link

niexq commented Jul 28, 2021

🐛 bug 描述

使用 ant-pro-v5 初始化项目,启动时,终端报错“Cannot find module: 'isomorphic-form-data' in swagger-ui-react”,但是项目可正常访问

📷 复现步骤

以下的两种情况试过,都报错,(启动或不启动MFSU都会报错)

# use by npm
npx create-umi myapp
#
# use by yarn
yarn create umi myapp

> ant-design-pro
> TypeScript 或 JavaScript
> complete
> cd myapp

npm install 或 yarn install

npm start

🏞 期望结果

启动时无报错

💻 复现代码

github地址:https://github.com/niexq/ant-pro-qiankun-main

© 版本信息

  • Ant Design Pro 版本: [5.0.0]
  • umi 版本: [^3.5.0]
  • 浏览器环境
  • 操作系统:MacBook Pro(macOS Big Sur )
  • 代码编辑器:Visual Studio Code
  • 版本:1.58.2
  • 安装方式:yarn 或 npm

🚑 其他信息

@niexq
Copy link
Author

niexq commented Jul 28, 2021

好吧,看来像是swagger-ui依赖的问题, swagger-api/swagger-js#2154
是不是得更新下@umijs/plugin-openapi对swagger-ui-react依赖版本

@kaisawind
Copy link

just to fixed it right now.

yarn add isomorphic-form-data

@niexq
Copy link
Author

niexq commented Jul 28, 2021

just to fixed it right now.

yarn add isomorphic-form-data

👌 🍻

@niexq
Copy link
Author

niexq commented Jul 28, 2021

同问题issues:#8818

@chenshuai2144
Copy link
Collaborator

ref swagger-api/swagger-ui#7436

看来是发包没跟上出问题了

@JERRYZFC
Copy link

you guys are just in time

@longxuexiaojiejie
Copy link

I found the same problem

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

No branches or pull requests

5 participants