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: Could not find dependency: '@ant-design/pro-components' relative to '/App.tsx' #1105

Closed
binyellow opened this issue Jun 12, 2022 · 5 comments
Labels
bug Something isn't working PR Welcome

Comments

@binyellow
Copy link
Contributor

Versions

  • dumi: 1.1.42
  • node: 16.13.0
  • npm: 8.1.0
  • OS: macOs big Sur 11.4
  • Browser: 版本 102.0.5005.61(正式版本) (x86_64)

Steps to reproduce

https://codesandbox.io/s/swsnsf?file=/App.tsx
其他pro-components的在线demo都会报错

What is Expected?

不报错,正确预览

What is actually happening?

Could not find dependency: '@ant-design/pro-components' relative to '/App.tsx'

补充

我的场景也是lerna,然后子package的依赖路径会是packages/xx/src
但是稍微浏览了下源码,发现packages/preset-dumi/src/transformer/demo/dependencies.ts解析依赖对这部分逻辑有点问题

@binyellow binyellow added the bug Something isn't working label Jun 12, 2022
@github-actions
Copy link

Hello @binyellow. In order to facilitate location and troubleshooting, we need you to provide a realistic example. You can create a dumi project by clicking here and provide the GitHub warehouse address and reproduce examples.

你好 @binyellow, 为了方便定位和排查问题,我们需要你提供一个重现实例。你可以通过点击 此处 创建一个 dumi 项目并提供 GitHub 仓库地址和重现实例。

@binyellow
Copy link
Contributor Author

Hello @binyellow. In order to facilitate location and troubleshooting, we need you to provide a realistic example. You can create a dumi project by clicking here and provide the GitHub warehouse address and reproduce examples.

你好 @binyellow, 为了方便定位和排查问题,我们需要你提供一个重现实例。你可以通过点击 此处 创建一个 dumi 项目并提供 GitHub 仓库地址和重现实例。

https://github.com/ant-design/pro-components

@github-actions
Copy link

Hello @binyellow. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please be sure to fill in the default template in the Pull Request, provide changelog/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @binyellow,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

@binyellow
Copy link
Contributor Author

老哥 下周有空发个版呗 @PeachScript

@PeachScript
Copy link
Member

v1.1.43 已发布,感谢👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR Welcome
Projects
None yet
Development

No branches or pull requests

2 participants