Problem when using pnpm
ZeroGDrive opened this issue · 0 comments
ZeroGDrive commented
Hi,
Checks before posting an issue
- I have read all the documentation included in the extension itself as a walkthrough, including the troubleshooting guide (from the VS Code menu: View > Command Palette >search "Documentation" > choose "Angular Schematics: Documentation and tutorial")
- I have checked in already:
- opened issues
- closed issues
- questions answered in the new "Discussions" tab
- My project meets the requirements indicated in README
- My workspace is in trusted mode, not restricted mode
- I understand this extension is just using Angular CLI schematics, it does not create files by itself, so any issue with the schematics should be reported in the relevant repository:
- I launched
ng g component hello
in the VS Code Terminal inside my project, and it works - I looked at the extension's logs ("Angular Schematics" Output channel, second tab left to the Terminal), and tried to fix my project's configuration accordingly
- I understand I am writing to a human being, doing this project unpaid
- I will be involved in my own issue, by answering questions and informing if the issue is resolved
Configuration
- VS Code version (only the last version is supported): 1.82
- Extension version: 5.4.2
- OS: mac os 13.5.2
- Are you using VS Code in normal mode or in a special mode (web version, WSL, SSH/remote, etc.): normal mode
- Angular version (
ng version
, only LTS versions are supported): 16.1
Description of the issue
When using pnpm in the project the extension doesn't work at all.
Extension logs
"@schematics/angular" should be present in a correctly installed Angular project.
(Note: I even manually installed @schematics/angular but it doesn't work)
How to reproduce the issue
Just use an angular project with pnpm and you will notice the issue. the issue is present in all projects I've been working on that uses pnpm. and when reverting to npm or yarn the extension works perfectly fine.