Skip to content

e2e tests crash on Playwright 1.62: cannot resolve tsconfig "extends": "@grafana/tsconfig" #2805

Description

@tolzhabayev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    📬 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions