-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Activating extension failed: Must use import to load ES Module #2435
Comments
It could be related to Node.js version which we are using to deploy Theia: manuelbieh/geolib#208 We switched to Node.js 12.18.3 in last release. Latest VS Code is 12.14.1. |
This looks like my issue, but I do need the |
Yes removing it will fix the issue. I think the following is happening:
|
but it could be a good idea for us to downgrade Node.js to avoid such issues for extensions |
By downgrade you mean? My understanding is that the Node.js version is controlled by VS Code, so once it decides to upgrade my extension will break. Or is it? |
Sorry for the confusion. I meant downgrading Node.js version in Gitpod that all VS Code extensions which working in VS Code now also work in Gitpod. I think you just should remove |
Got it. To me it seems to makes more sense if Gitpod can keep the Node version the same with VS Code to avoid such issue from happening. And when VS Code upgrades the Node version (and break my extension potentially), I shall fix it, otherwise it's hard to fix it locally. |
Any thoughts? |
for better compatibility of VS Code extensions
PR is there: #2508 but I doubt we will deploy it this year, likely beginning next year. |
thanks |
for better compatibility of VS Code extensions
The fix was deployed. |
VS Code has upgraded the node version to 12.18.3 |
@laike9m thank you for a ping, I will bump it up this month: #3069 (comment) |
for better compatibility of VS Code extensions
Describe the bug
When my extension is being activated, it reports the following error
The same extension can work in VS Code without any problem, and it used to (around two weeks ago) work in Gitpod as well.
Steps to reproduce
Visit
https://gitpod.io/#snapshot/91475a9d-4ccf-420a-b0ee-11db084ce689
and you'll see the error popup.
Expected behavior
The extension can be activated successfully with no error.
Additional information
Example repository
Repository of my extension:
https://github.com/laike9m/Cyberbrain/tree/master/cyberbrain-vsc
The text was updated successfully, but these errors were encountered: