Playwright 1.62 made unresolvable tsconfig extends paths a fatal error (microsoft/playwright#41571). Its config loader only probes paths relative to the extending file plus a node_modules folder next to it, so the scaffolded "extends": "@grafana/tsconfig" in .config/tsconfig.json can never resolve. Before 1.62 this failed silently and the empty config went unnoticed, now playwright test crashes on startup:
Error: Failed to load tsconfig file at /path/to/plugin/tsconfig.json:
Failed to resolve "extends" path "@grafana/tsconfig" referenced from /path/to/plugin/.config/tsconfig.json
Every scaffolded plugin that floats to @playwright/test 1.62 is affected. First seen in grafana/grafana-plugin-examples#721 where all five e2e matrix jobs fail with this error.
Upstream regression report: microsoft/playwright#41989.
Plan:
- pin
@playwright/test to 1.61.x in the template and via a migration (short term)
- once upstream resolves the issue, drop the pin. If they instead remove the
node_modules fallback entirely, we need to rework how the scaffolded tsconfig consumes @grafana/tsconfig
Keeping this open until the pin is removed.
Playwright 1.62 made unresolvable tsconfig
extendspaths a fatal error (microsoft/playwright#41571). Its config loader only probes paths relative to the extending file plus anode_modulesfolder next to it, so the scaffolded"extends": "@grafana/tsconfig"in.config/tsconfig.jsoncan never resolve. Before 1.62 this failed silently and the empty config went unnoticed, nowplaywright testcrashes on startup:Every scaffolded plugin that floats to
@playwright/test1.62 is affected. First seen in grafana/grafana-plugin-examples#721 where all five e2e matrix jobs fail with this error.Upstream regression report: microsoft/playwright#41989.
Plan:
@playwright/testto 1.61.x in the template and via a migration (short term)node_modulesfallback entirely, we need to rework how the scaffolded tsconfig consumes@grafana/tsconfigKeeping this open until the pin is removed.