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
When following the Building an Extension tutorial, I ran into the following error message:
❯ vsce package
(node:55696) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
ERROR You should not depend on 'vscode'in your 'dependencies'. Did you mean to add it to 'devDependencies'?
That's not an error (at least not one on our side). The vscode dependency used in there is a very special runtime dependency that implements the whole vscode API on top of monaco. It is not intended to be used in vscode extensions.
In order to build a vscode extension, you will need to split the generated project into multiple npm workspaces. It might make sense to add this to the yeoman generator by default, but the behavior exhibited here is correct. One could argue that vsce is at fault here, since it shows a false positive.
When following the Building an Extension tutorial, I ran into the following error message:
Langium version: [email protected]
Steps To Reproduce
vsce package
commandThe current behavior
The error described above.
The expected behavior
Building an extension for VS Code.
Possible Solution
I was able to fix the issue by moving this line:
To
devDependencies
.The error seems to have been introduced by #1205.
The text was updated successfully, but these errors were encountered: