No config file for .html files when using Yarn 3 pnp
- 主要语言
- TypeScript
- 星标
- 101k
- 派生
- 27.5k
- 平均合并
- 1 天 19 小时
- 30 天内合并 PR
- 288
描述
# 🐞 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: https://github.com/angular/vscode-ng-language-service/issues/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
- [x] Angular Language Service VSCode extension
- [ ] Angular Language Service server
## Reproduction
Steps to reproduce the behavior:
1. Clone: https://github.com/angular/vscode-ng-language-service/issues/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 /yarnpnp-storybook-angular-repro/src/app/app.component.html
[Error - 22:22:00] No config file for /yarnpnp-storybook-angular-repro/src/app/app.component.html
[Error - 22:22:00] No config file for /yarnpnp-storybook-angular-repro/src/app/app.component.html
[Error - 22:22:00] No config file for /yarnpnp-storybook-angular-repro/src/app/app.component.html
[Error - 22:22:05] No config file for /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
贡献指南
调研方向
使用链接的 yarnpnp-storybook-angular-repro 项目重现该故障,然后在 VS Code 中打开 src/app/app.component.html 并检查 Angular Language Service 扩展的输出。跟踪 Yarn 3 Plug'n'Play 下 HTML 文件的配置查找过程;当 Angular Language Service 的功能(例如对组件执行 cmd-click)能够像使用 node_modules 时一样工作,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100