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.
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.