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] install click-to-component error #12763

Closed
purple-force opened this issue Nov 4, 2024 · 9 comments
Closed

[Bug] install click-to-component error #12763

purple-force opened this issue Nov 4, 2024 · 9 comments

Comments

@purple-force
Copy link

What happens?

click-to-component 刚发布了 1.1.2 版本,umi 内置插件依赖该包实现 clickToComponent 功能,安装依赖报错
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in xxxxx//ode_modules/click-to-react-component/package.json

Mini Showcase Repository(REQUIRED)

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

已提 issue,遇到同样问题请跟踪 ericclemmons/click-to-component#93

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

  • Umi Version:
  • Node Version:
  • Platform:
@wulibaibao
Copy link

config.ts注释掉clickComponent,删除.umi,重新install,也不行。。。

@purple-force
Copy link
Author

purple-force commented Nov 4, 2024

可以先在 click-to-components 的 pkg 里手动自己添加下

@seesawz
Copy link

seesawz commented Nov 4, 2024

可以先在 click-to-components 的 pkg 里手动自己添加下

除了自己修改版本号,没有其他的解决办法吗?

@purple-force
Copy link
Author

可以先在 click-to-components 的 pkg 里手动自己添加下

除了自己修改版本号,没有其他的解决办法吗?

patch-package 这包也可临时顶下

@MarioJames
Copy link

@umijs/preset-umi 包刚发了最新版本 4.3.29,重新更新下依赖就好了

@seesawz
Copy link

seesawz commented Nov 4, 2024

可以先在 click-to-components 的 pkg 里手动自己添加下

除了自己修改版本号,没有其他的解决办法吗?

patch-package 这包也可临时顶下

感谢🙏

@zhaodengping
Copy link

How can I solve this proble?

@seesawz
Copy link

seesawz commented Jan 6, 2025

How can I solve this proble?我该如何解决这个问题?

update umi version

@zhaodengping
Copy link

zhaodengping commented Jan 6, 2025

How can I solve this proble?我该如何解决这个问题?

update umi version

非常感谢,我把umi升级到4.4.4,已经正常打包了。然后我翻了umi发布日志,发现在4.3.29解决的这个问题,umi日志是:https://github.com/umijs/umi/releases
再次感谢!

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

6 participants