apache / apache/echarts

Could not find a declaration file for module 'echarts/lib/echarts'.

Open
#12,344 4 comments 6 reactions 0 assignees View on GitHub
new-feature
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.