Skip to content
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

The engine "vscode" appears to be invalid #91009

Closed
g2-aj opened this issue Feb 19, 2020 · 5 comments
Closed

The engine "vscode" appears to be invalid #91009

g2-aj opened this issue Feb 19, 2020 · 5 comments
Assignees

Comments

@g2-aj
Copy link

g2-aj commented Feb 19, 2020

I have the following section in my package.json:

"engines": {
"vscode": "^1.33.0"
},

When I run "npm vsce package --yarn" I get the following warning:
The engine "vscode" appears to be invalid

If I remove engines.vscode, I get the error:
Error installing vscode.d.ts: Missing VSCode engine declaration in package.json

The yarn version I am using is v1.15.2

How can I get rid of this error?

@g2-aj
Copy link
Author

g2-aj commented Feb 19, 2020 via email

@isidorn
Copy link
Contributor

isidorn commented Feb 20, 2020

Not sure if ^ is supported in the engines field. Myabe try some other version. Since you are running vsce forwarding this issue to @joaomoreno

@weinand
Copy link
Contributor

weinand commented Feb 20, 2020

I think Andrii's workaround is the only way to get rid of this warning.

(I'm just ignoring the warning)

@IllusionMH
Copy link
Contributor

Sorry, removed initial answer, because only later noticed that yarn wasn't launched directly and I wasn't sure if option can be passes. Original answer below:

In this case it's useless warning and can be ignored.
Unfortunately - only way to hide error specifically for vscode - only all errors about engine yarn install --ignore-engines

@joaomoreno
Copy link
Member

This seems to be a yarn feature.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants