eclipse-theia / generator-theia-extension

A Yeoman generator for extensions to the Theia IDE
Other
49 stars 37 forks source link

errors: there are a number of build errors during CI #164

Closed vince-fugnitto closed 1 year ago

vince-fugnitto commented 1 year ago

Description

There are a number of build errors during CI which will need to be addressed:

Example:

Error: lerna ERR! src/browser/hello-world-contribution.ts(14,10): error TS1239: Unable to resolve signature of parameter decorator when called as an expression.
Error: lerna ERR! src/browser/example-file/example-file-command.ts(21,10): error TS1239: Unable to resolve signature of parameter decorator when called as an expression.
Error: src/browser/example-file/example-file-command.ts(21,10): error TS1239: Unable to resolve signature of parameter decorator when called as an expression.
MenbinX commented 1 year ago

I think this issue is caused by latest TypeScript version5.0.2,When I downgrade the TypeScript version, there are no errors

JonasHelming commented 1 year ago

Yes, I can confirm, it seems like this issue: https://github.com/microsoft/TypeScript/issues/52435 The original issue would be fixed by an update of inversify. For a quickfix, I suggest to pin the TypeScript version in the generators to the same as used in Theia, does this work for you @vince-fugnitto