Skip to content

No config file for .html files when using Yarn 3 pnp #65514

Description

@wiegell

🐞 bug report

Is this a regression?

ALS is not working for .html files with Yarn3 pnp
I think this issue has been present earlier and fixed here: angular/vscode-ng-language-service#1748

Description

A clear and concise description of the problem...

I'm getting the exact same error. When installing a repo with yarn 3 (pnp) language server is not working for .html files. The old repro is still valid (= not working): https://github.com/ld210/yarnpnp-storybook-angular-repro

Bug Type

What does this bug affect

  • Angular Language Service VSCode extension
  • Angular Language Service server

Reproduction

Steps to reproduce the behavior:

  1. Clone: Yarn PnP - "No config file" error on a project using Yarn PnP mode vscode-ng-language-service#1748
  2. yarn
  3. Go to app.component.html
  4. View ALS error output and see that ALS is not working (no cmd-clicking components in template)

Expected behavior

Should work as with node_modules

Logs

[Error - 22:18:59] No config file for <USERPATH>/yarnpnp-storybook-angular-repro/src/app/app.component.html
[Error - 22:22:00] No config file for <USERPATH>/yarnpnp-storybook-angular-repro/src/app/app.component.html
[Error - 22:22:00] No config file for <USERPATH>/yarnpnp-storybook-angular-repro/src/app/app.component.html
[Error - 22:22:00] No config file for <USERPATH>/yarnpnp-storybook-angular-repro/src/app/app.component.html
[Error - 22:22:05] No config file for <USERPATH>/yarnpnp-storybook-angular-repro/src/app/app.component.html

🌍 Your Environment

Angular Version:




Angular CLI: 15.2.1
Node: 18.17.1
Package Manager: yarn 3.2.1
OS: darwin arm64

Angular: 
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1502.1 (cli-only)
@angular-devkit/build-angular   
@angular-devkit/core            15.2.1 (cli-only)
@angular-devkit/schematics      15.2.1 (cli-only)
@angular/cli                    15.2.1 (cli-only)
@schematics/angular             15.2.1 (cli-only)
rxjs                            6.6.7 (cli-only)
typescript                      5.0.2 (cli-only)

Extension Version:




v16.1.8

VSCode Version:




1.83.1 

Operating System:




MacOS 13.4.1 

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: vscode-extensionIssues related to the Angular Language Service VsCode extensionbug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions