-
Notifications
You must be signed in to change notification settings - Fork 21
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
react-bmapgl/types/bmapgl/index.d.ts”不是模块 #60
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我目前开发环境时react+typescript,然后报ts错误,node_modules/react-bmapgl/types/bmapgl/index.d.ts”不是模块
相关包版本:
"react-bmapgl": "^0.2.7",
"@types/bmapgl": "^0.0.5",
感觉官方支持不完善,不清楚有什么好的解决方案;
目前我用的是:
*. declare module "react-bmapgl"; 这种就不太好,缺少了类型
*. 到react-bmapgl的package.json里面的types,把types/bmapgl/index.d.ts 改成 dist/index.d.ts;感觉这种也不好,如果这种可以的话,那官方为什么处理一下呢,而手动改也不好。
求解决方案
The text was updated successfully, but these errors were encountered: