-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Different versions of @theia/core are causing 'Cannot apply @injectable decorator multiple times' error #7248
Comments
@tsiyona thank you for the issue! It is not possible to mix and match versions of an extension (two extensions cannot both use Additional Information: |
oh, we should have merged it before the release 🙈 sorry I have not seen the PR |
I did change the versions to "latest" manually before I opened the issue. I will wait for your fix. Thank you :) |
Same issue here, running the sample generated by "yo theia-extension", following the doc, for Electron, on Windows. |
@loblab the issue occurs due to the fact that there are deprecated extensions included with the For the moment (until the release of the updated generator), you can remove any extension as described in the following pull-request (#6933). For the generator this consists of:
|
@vince-fugnitto Thanks. It works. |
The generator has been updated to remove deprecated extensions causing the issue: |
Description
I have created a sample Theia extension using 'yo theia-extension'.
When trying to start the server I get the error: 'Failed to start the frontend application',
where the root cause is: 'Error: Cannot apply @Injectable decorator multiple times.',
reffering to @theia/core.
I checked @theia/core dependency and saw that some extensions require @theia/core version 0.15.0 and some 0.16.0,
for example, /node_modules/@theia/monaco/node_modules/@theia/core
Could this be causing the error?
I saw that a new release of @theia/core was out two days ago, which more or less matches the time this problem started for me.
Reproduction Steps
yo theia-extension
and start theia.
OS and Theia version:
Ubuntu 18.04.4
Diagnostics:
N/A
The text was updated successfully, but these errors were encountered: