Could not find a declaration file for module 'echarts/lib/echarts'.
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### Version
4.7.0
### Steps to reproduce
```bash
yarn add echarts
yarn add @types/echarts
```
```ts
// lazy_echarts.ts load-on-demand
import echarts from "echarts/lib/echarts";
import "echarts/lib/chart/line";
import "echarts/lib/component/title";
import "echarts/lib/component/tooltip";
export { echarts };
```
### What is expected?
i need help to come true load-on-demand.
### What is actually happening?
Could not find a declaration file for module 'echarts/lib/echarts'. 'd:/WorkSpace/data-analyze-platform/node_modules/echarts/lib/echarts.js' implicitly has an 'any' type.
Try `npm install @types/echarts` if it exists or add a new declaration (.d.ts) file containing `declare module 'echarts/lib/echarts';`
Contributor guide
Assessment
This issue has not been assessed yet.