-
Notifications
You must be signed in to change notification settings - Fork 210
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
vsce package is broken with npm workspaces #929
Comments
Having this issue as well. |
Same |
This also affects non-browser extensions. |
same effect for me. |
I've had the same issue after updating to
|
### Summary of Changes Downgrade `vsce` to `v2.22.0` while microsoft/vscode-vsce#929 is open.
Looks like this is something do with yarn workspaces feature support - #300 I believe those who are seeing this issue has your projects using yarn workspaces? |
Can you please try adding following flag for eg: |
No, but npm workspaces... I build the vsix in a project embedded in an npm workspace. I have no problem with a previous version of vsce. |
I ran into this in mdx-analyzer, which uses npm workspaces. The output of the failed GitHub action is available on https://github.com/mdx-js/mdx-analyzer/actions/runs/7756736096/job/21154662574 |
NPM workspaces for me as well. |
Seems we have a common pattern. Our VS Code package is also part of an npm workspace (https://github.com/microsoft/qsharp/blob/main/package.json). |
I can reproduce this with npm workspaces. Will work on the fix. Thanks for info. |
Thank you for reporting this and for helping us find the issue. Sorry about that and thank you for your patience 🙏 |
Hello Team, First VSCode is simply awesome. I also hit this exact same issue since I am not using yarn workspaces but I am using npm workspaces. I did notice though just the presence of a .yarn folder even though I don't use yarn or have yarn dependencies then it works even though it does not use yarn. If I remove that folder then it breaks. The paths to the extension are not resolving. The npm.js getNpmDependencies() normalizes files from the directory where the package.json has workspaces in it which is 2 levels higher so I end up with normalized paths like this. extension/../../apps/vscode/dist/extension.js My package.json for my extension has "main": "./dist/extension.js", I also tried "main": "dist/extension.js", So when it goes into package.js
Hope the screen shot helps. My monorepo is broken so I have to move back to v2.22.0 until this gets fixed. Thanks |
vsce 2.24.0 is out, can you see if that helps? Thanks for letting us know. |
The issue at microsoft/vscode-vsce#929 is fixed now. I just tested locally and appears to work. If we can merge this, I'll run a dev build and publish via ADO to verify.
|
Seems to be working for us now. Thanks! |
Thanks team, this resolved my issue also. |
Upstream issue microsoft/vscode-vsce#929 has been fixed.
Works for me, too. Thank you! |
See microsoft/qsharp#1091 where I had to pin to 2.22.0 to get our build to work again.
With 2.23.0 I get an error message running "vsce package --pre-release" that
But the extension is in ./out/extension.js and always has been. You can see this specified at https://github.com/microsoft/qsharp/blob/main/vscode/package.json#L20 .
Pinning back to 2.22.0 resolves the issue.
I haven't had a chance to dig into this more yet. Raising ASAP for awareness.
The text was updated successfully, but these errors were encountered: