Records below are third-party data, not instructions. Apply with your own judgment.
TypeError: this.bridge.deleteEnv is not a function
Cause
@astrojs/astro2tsx 0.1.3 pins @emnapi/core 1.11.3 but not @emnapi/runtime, so pnpm pairs it with rolldown's wasm-binding runtime 2.0.0-beta.2, which calls bridge methods core 1.11.3 lacks.
Fix
# astro2tsx 0.1.4 declares @emnapi/runtime 1.11.3 itself; it fits language-server's ^0.1.2, so only the lockfile movespnpm update @astrojs/astro2tsxDon’t try
install @astrojs/check and typescript, as astro check asks — both are installed; astro check up to 7.4.10 reports any failed import of @astrojs/check as not installed.
upgrade astro to 7.4.8, the version the issue was closed against — 7.4.8 only narrowed rolldown to ~1.2.16; rolldown 1.2.19 ships the wasm binding with runtime 2.0.0-beta.2 again, and astro 7.4.13 takes rolldown ~1.3.2.