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

Error when build with angular 11 #14739

Closed
ddurieux opened this issue Apr 21, 2021 · 6 comments
Closed

Error when build with angular 11 #14739

ddurieux opened this issue Apr 21, 2021 · 6 comments
Labels
bug en This issue is in English typescript

Comments

@ddurieux
Copy link

Version

5.1.0

Steps to reproduce

Install last version of angular11, echarts, ngx-echarts

What is expected?

Build the project without errors

What is actually happening?

Many errors when buld my project


Error: node_modules/echarts/types/dist/echarts.d.ts:6391:13 - error TS1110: Type expected.

6391 [key in ${ComponentMainType}Index]: number;
~~~

Error: node_modules/echarts/types/dist/echarts.d.ts:6391:16 - error TS2693: 'ComponentMainType' only refers to a type, but is being used as a value here.

6391 [key in ${ComponentMainType}Index]: number;
~~~~~~~~~~~~~~~~~

Error: node_modules/echarts/types/dist/echarts.d.ts:6391:40 - error TS1005: ';' expected.

6391 [key in ${ComponentMainType}Index]: number;
~

Error: node_modules/echarts/types/dist/echarts.d.ts:6391:41 - error TS1128: Declaration or statement expected.

6391 [key in ${ComponentMainType}Index]: number;
~

Error: node_modules/echarts/types/dist/echarts.d.ts:6391:43 - error TS2693: 'number' only refers to a type, but is being used as a value here.

m6391 [key in ${ComponentMainType}Index]: number;
~~~~~~

Error: node_modules/echarts/types/dist/echarts.d.ts:6392:1 - error TS1128: Declaration or statement expected.

6392 } & {
~

Error: node_modules/echarts/types/dist/echarts.d.ts:6392:3 - error TS1109: Expression expected.

6392 } & {
~

Error: node_modules/echarts/types/dist/echarts.d.ts:6392:5 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.

6392 } & {
~
6393 [key in string]: unknown;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6394 };
~

Error: node_modules/echarts/types/dist/echarts.d.ts:6393:13 - error TS2693: 'string' only refers to a type, but is being used as a value here.

6393 [key in string]: unknown;
~~~~~~

1m
Error: node_modules/echarts/types/dist/echarts.d.ts:6393:22 - error TS2693: 'unknown' only refers to a type, but is being used as a value here.

6393 [key in string]: unknown;
~~~~~~~

Error: node_modules/echarts/types/dist/echarts.d.ts:6393:29 - error TS1005: ',' expected.

6393 [key in string]: unknown;
~

Error: node_modules/echarts/types/dist/echarts.d.ts:6393:5 - error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.

6393 [key in string]: unknown;
~~~~~~~~~~~~~~~

Error: node_modules/echarts/types/dist/echarts.d.ts:6393:6 - error TS2552: Cannot find name 'key'. Did you mean 'keys'?

6393 [key in string]: unknown;
~~~

node_modules/echarts/types/dist/echarts.d.ts:269:18
269 declare function keys(obj: T): (KeyOfDistributive & string)[];
~~~~
'keys' is declared here.

@echarts-bot
Copy link

echarts-bot bot commented Apr 21, 2021

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Apr 21, 2021
@plainheart
Copy link
Member

Thanks for your feedback. It's related to #14716. #14722 has fixed it.

@plainheart plainheart added typescript and removed pending We are not sure about whether this is a bug/new feature. labels Apr 22, 2021
@Ovilia Ovilia closed this as completed Apr 23, 2021
@sherlockEix
Copy link

hi. when will it be released? @plainheart thanks

@plainheart
Copy link
Member

@sherlockEix It will be released within the next several days.

@ttanphat77
Copy link

Thanks for your hard working @plainheart but Is there any workaround for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English typescript
Projects
None yet
Development

No branches or pull requests

5 participants