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
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 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 dev@echarts.apache.org. 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! 🍵 |
hi. when will it be released? @plainheart thanks |
@sherlockEix It will be released within the next several days. |
Thanks for your hard working @plainheart but Is there any workaround for this issue? |
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.
The text was updated successfully, but these errors were encountered: