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

Manifest is missing .vsix file in "files" field #70

Open
Philreact opened this issue Jul 1, 2022 · 3 comments
Open

Manifest is missing .vsix file in "files" field #70

Philreact opened this issue Jul 1, 2022 · 3 comments

Comments

@Philreact
Copy link

Summary
I published a npm package with a .vsix file but for some reason the private extension manager is unable to locate it.

Proof
image
image

here is my package.json
image

here is when I npm install the package - just to show that I have a .vsix file in it.
image

Does anyone know how to fix this?

@joelspadin-garmin
Copy link
Owner

That error message indicates that findVsixFile() in Package.ts didn't find the .vsix file. This is the code that should be handling that.

for (const file of manifest.files) {
if (typeof file === 'string' && file.endsWith('.vsix')) {
return success(file);
}
}

I don't see any reason why that would fail from the portion of the package.json that you've shown. Does your package.json contain an "osSpecificVsix" field which contains neither an entry for your OS nor a "default" value?

@Philreact
Copy link
Author

Thanks Joel for responding to my issue.

I didn't have an "osSpecificVsix" field initially but I tried adding it and I'm still receiving the 'Manifest is missing .vsix file in "files" error.

@pbance-spendesk
Copy link

The files field is indeed in the package.json. But it's missing somehow from the repository manifest that is fetched by the npm-registry-fetch package. Is it possible to configure a private registry in order to have this information in the manifest file somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants