-
Notifications
You must be signed in to change notification settings - Fork 122
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
Cannot resolve definitions from pnpm modules #657
Comments
Do you have |
Hi @ayazhafiz, thanks for the answer. I do have @angular/common in my node_modules. But, I'm using pnpm and not npm. May that be the problem? The app compiles ok and I'm sure it was working fine and without showing this error in vscode like 2 months ago. |
@ayazhafiz Regarding your question about my Angular version, I'm working with v8.2.8 in this project: |
I think pnpm is the issue. I just made a project with pnpm and repro'd your issue |
Not sure what we need to do to support pnpm. Looks like there is some existing issues with this on the TS side (microsoft/TypeScript#35206, microsoft/TypeScript#29221). Community contributions and suggestions are welcome. |
@clov3r can you provide us with more details (per https://github.com/angular/vscode-ng-language-service/blob/master/.github/ISSUE_TEMPLATE/bug_report.md)? There are a number of reasons this error might appear. |
I have submitted a PR. |
Fixed by @ivanwonder's PR :) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Describe the bug
We are getting an error when using some pipes since we updated Angular Language Service to 0.900.14.
For example, in one of our components we have the following variable:
Then, in the template we use the uppercase pipe on it:
And we're getting the following error in VS Code:
To Reproduce
Steps to reproduce the behavior:
(see the example above)
Expected behavior
We expect no error from this piece of code since the code compiles correctly:
Logs
Please attach two logs:
nglangsvc.log
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: