You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by Ole Ersoy <ol...@gmail.com> on 2022/11/23 00:58:42 UTC

Importing graphic in Typescript

Hi,

I'm attempting to import graphic in Typescript.  This is the demo.

https://stackblitz.com/edit/angular-ivy-52drlo?file=src%2Fapp%2Fapp.component.ts

This is the related SO question:
https://stackoverflow.com/questions/74540403/importing-echarts-in-typescript

The import produces the error:

Error in src/app/app.component.ts (64:22)
'echarts' refers to a UMD global, but the current file is a module.
Consider adding an import instead.

Thoughts?

TIA,
Ole

Fwd: Importing graphic in Typescript

Posted by Ole Ersoy <ol...@gmail.com>.
Please just ignore this question.  I realized that I had left echarts
prepended to graphic, hence the error.  Once I removed it the example
compiles fine.

Cheers,
Ole

---------- Forwarded message ---------
From: Ole Ersoy <ol...@gmail.com>
Date: Tue, Nov 22, 2022 at 7:58 PM
Subject: Importing graphic in Typescript
To: <de...@echarts.apache.org>


Hi,

I'm attempting to import graphic in Typescript.  This is the demo.

https://stackblitz.com/edit/angular-ivy-52drlo?file=src%2Fapp%2Fapp.component.ts

This is the related SO question:
https://stackoverflow.com/questions/74540403/importing-echarts-in-typescript

The import produces the error:

Error in src/app/app.component.ts (64:22)
'echarts' refers to a UMD global, but the current file is a module.
Consider adding an import instead.

Thoughts?

TIA,
Ole