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

地图无法画出 源码一直报错 #54

Open
laochuanzhangL opened this issue Jul 12, 2022 · 4 comments
Open

地图无法画出 源码一直报错 #54

laochuanzhangL opened this issue Jul 12, 2022 · 4 comments

Comments

@laochuanzhangL
Copy link

image

@laochuanzhangL
Copy link
Author

代码一个月前可以正常运行。现在地图无法展示,但是仍然可以触发点击事件,地图上面的windowInfo也可以正常展示,只有地图不能正常展示
image

@laochuanzhangL
Copy link
Author

好像这个报错只会在开发环境下出现,打包后的代码不存在这个错误

@xu-lif
Copy link

xu-lif commented Jul 26, 2022

好像在react@18,开发环境且严格模式下会出问题吧,注释掉React.StrictMode会不会好啊
image

@laochuanzhangL
Copy link
Author

好像在react@18,开发环境且严格模式下会出问题吧,注释掉React.StrictMode会不会好啊 image

可以了可以了 应该就是这个问题 太感谢了

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