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

ContextMenu导出错误 #336

Open
gmono opened this issue Nov 8, 2023 · 1 comment
Open

ContextMenu导出错误 #336

gmono opened this issue Nov 8, 2023 · 1 comment

Comments

@gmono
Copy link

gmono commented Nov 8, 2023

image

说明

  1. 安装最新版本后,在vscode中从总包和单独包中都无法import到ContextMenu组件,全局的AMap.ContextMenu明显不是一个React组件
  2. 官方文档也出现了同样的错误,如上图

可能问题

  1. 经研究可能出在ContextMenu的package的index.ts文件的导出上,改为如图可能可以解决问题:

    image
    由于运行yarn start 启动website预览时出现错误,暂时不能验证是否正确 ,希望能解决这个问题

@jaywcjlove
Copy link
Member

@gmono thx!

升级到 v5.0.18

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

2 participants