dmeehan1968 commented on issue #16976:
URL: https://github.com/apache/echarts/issues/16976#issuecomment-1135108248
@types/echarts seems to be at v4.9.15, whilst echarts is at v5.3.2.
You can workaround by casting
```
const chart = echarts.init(canvas as unknown as HTMLCanvasElement);
```
This also goes for using SVG for the output type:
```
this.chart = echarts.init(null as unknown as HTMLCanvasElement, undefined, {
renderer: 'svg',
ssr: true,
width: 400,
height: 300
});
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]