Skip to content

Cannot resolve definitions from pnpm modules #657

Closed
@lucas-labs

Description

@lucas-labs

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:

export class LuBadgeComponent implements OnInit {
    @Input() label: string;
    ...
}

Then, in the template we use the uppercase pipe on it:

<p>
    {{ label | uppercase }}
</p>

And we're getting the following error in VS Code:

image

To Reproduce

Steps to reproduce the behavior:

  1. Create a component with a string variable
  2. Use the uppercase pipe on the variable inside the template
  3. See error

(see the example above)

Expected behavior

We expect no error from this piece of code since the code compiles correctly:

image

Logs

Please attach two logs:

  1. Console output
[Info  - 18:18:10] Angular language server process ID: 8428
[Info  - 18:18:10] Using typescript v3.7.4 from c:\Users\lucas\.vscode\extensions\angular.ng-template-0.900.14\node_modules\typescript\lib\tsserverlibrary.js
[Info  - 18:18:10] Using @angular/language-service v9.0.2 from c:\Users\lucas\.vscode\extensions\angular.ng-template-0.900.14\server\node_modules\@angular\language-service\bundles\language-service.umd.js
[Info  - 18:18:10] Log file: c:\Users\lucas\AppData\Roaming\Code\logs\20200221T181704\exthost1\Angular.ng-template\nglangsvc.log
  1. Log file
    nglangsvc.log

Screenshots
image

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

buglibRelates to an issue in the @angular/language-service library

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions