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: dumi组件中使用dumi提供的api构建组件后在项目中引入报错 #2114

Closed
QDyanbing opened this issue May 14, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@QDyanbing
Copy link

Version

2.3.4

OS Version

macOS 14.4.1

Node.js Version

v16.20.1

Browser Version

chrome 124.0.6367.202

Link to minimal reproduction

https://github.com/QDyanbing/bug-repro-dumi-missing-dependencies

Steps to reproduce

image 组件中如果使用的dumi提供的方法构建出的组件在项目中使用时会报错

What is expected?

能正常使用

What is actually happening?

引入组件报错

Any additional comments? (optional)

No response

@QDyanbing
Copy link
Author

image 这个是构建好的组件的源码,这个组件已上传到npm

@PeachScript
Copy link
Member

组件库源码不应该依赖框架,API 文档已有提示:https://d.umijs.org/theme/api#api

@PeachScript PeachScript closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2024
@PeachScript PeachScript added invalid This doesn't seem right and removed unconfirmed labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants