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

echarts-for-react报错 has no exported member 'ObjectMap'. #10

Open
IdaKelly opened this issue Jul 26, 2020 · 2 comments
Open

echarts-for-react报错 has no exported member 'ObjectMap'. #10

IdaKelly opened this issue Jul 26, 2020 · 2 comments

Comments

@IdaKelly
Copy link

IdaKelly commented Jul 26, 2020

在web文件夹下运行nmp start,报这个错误?

Module '"../../node_modules/echarts-for-react/lib"' has no exported member 'ObjectMap'. Did you mean to use 'import ObjectMap from "../../node_modules/echarts-for-react/lib"' instead? TS2614

网上搜了一下,对echarts-for-react的core.d.ts和index.d.ts更改,增加exports.ObjectMap=ObjectMap,仍然没有运行啊。。。这是为什么呢?

@IdaKelly IdaKelly changed the title echarst-for =-react报错Module '"../../node_modules/echarts-for-react/lib"' has no exported member 'ObjectMap'. Did you mean to use 'import ObjectMap from "../../node_modules/echarts-for-react/lib"' instead? TS2614 echarst-for-react报错 has no exported member 'ObjectMap'. Jul 26, 2020
@IdaKelly IdaKelly changed the title echarst-for-react报错 has no exported member 'ObjectMap'. echarts-for-react报错 has no exported member 'ObjectMap'. Jul 27, 2020
@Crawler995
Copy link
Owner

你确定是在dybarrage-web的根目录下npm start的吗 感觉你这目录不太对啊

@IdaKelly
Copy link
Author

IdaKelly commented Aug 3, 2020

你确定是在dybarrage-web的根目录下npm start的吗 感觉你这目录不太对啊

是欸 在web文件夹目录下面运行的 报错的这个目录是放echarts的地方,也有问题吗?

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