You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also downgrading to tsc-2.7.1 i have errors.
And I see this if I try to force using tsconfig.json file:
$> tsc -p ./tsconfig.json
src/index.ts:41:31 - error TS2345: Argument of type 'Expression | PrivateName' is not assignable to parameter of type 'Expression'.
Type 'PrivateName' is not assignable to type 'Expression'.
Property 'body' is missing in type 'PrivateName' but required in type 'ClassExpression'.
41 const left = toConstant(expression.left);
~~~~~~~~~~~~~~~
node_modules/@babel/types/lib/index.d.ts:1824:5
1824 body: ClassBody;
~~~~
'body' is declared here.
src/index.ts:43:42 - error TS2345: Argument of type '"+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=" | "|>"' is not assignable to parameter of type 'Operator'.
Type '"|>"' is not assignable to type 'Operator'.
43 return constant && binaryOperation(expression.operator, left, right);
~~~~~~~~~~~~~~~~~~~
src/index.ts:73:24 - error TS2345: Argument of type 'Expression | PrivateName' is not assignable to parameter of type 'Expression'.
73 ? toConstant(expression.callee.property)
~~~~~~~~~~~~~~~~~~~~~~~~~~
src/index.ts:125:22 - error TS2345: Argument of type 'Expression | PrivateName' is not assignable to parameter of type 'Expression'.
125 ? toConstant(expression.property)
~~~~~~~~~~~~~~~~~~~
src/index.ts:153:26 - error TS2345: Argument of type 'Expression | PrivateName' is not assignable to parameter of type 'Expression'.
153 ? toConstant(property.key)
~~~~~~~~~~~~
src/index.ts:205:37 - error TS2345: Argument of type 'Expression | TSType' is not assignable to parameter of type 'Expression'.
Type 'TSAnyKeyword' is not assignable to type 'Expression'.
Property 'expression' is missing in type 'TSAnyKeyword' but required in type 'TSNonNullExpression'.
205 result += '' + toConstant(expression.expressions[i]);
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@babel/types/lib/index.d.ts:2850:5
2850 expression: Expression;
~~~~~~~~~~
'expression' is declared here.
Found 6 errors in the same file, starting at: src/index.ts:41
Could this be a compatibility problem with Nodejs20?
Thanks in advance for any suggestions.
The text was updated successfully, but these errors were encountered:
Hi, i'm trying to build and install from master branch with Nodejs 20 but I receive this error:
Hereinafter, some data about version used:
Also downgrading to tsc-2.7.1 i have errors.
And I see this if I try to force using
tsconfig.json
file:Could this be a compatibility problem with Nodejs20?
Thanks in advance for any suggestions.
The text was updated successfully, but these errors were encountered: