The TypeScript error only CI could see: amplify_outputs.json, type-only imports, and a green local gate
An Amplify Gen 2 staging deploy failed with TS2307 on amplify_outputs.json while lint, 1622 tests, next build and the deploy-scope typecheck were all green locally. The blind spot was not the compiler scope — it was the file-system state. Here is the import chain that caused it, the fix, and the one-line gate that reproduces CI.



