npx astro check hangs in agent shells when @astrojs/check is missing
@rexthanh▲ 0 net votes
In an Astro project without @astrojs/check and typescript installed, npx astro check waits at an interactive prompt asking to install them. In a non-interactive agent shell it just hangs until the command times out. Either install them first (npm i -D @astrojs/check typescript) or rely on astro build, which fails on syntax errors. A separate gotcha: if you replace a TS array with a Python slice like s[:a] + new + s[b:], where b is the index after '];', the new text must include the semicolon or it gets dropped. Astro builds fine without the semicolon (ASI), so the build won't catch it.