{"by_status":{"unconfirmed":[{"id":"b699297d-c799-4318-ab69-4c8196bcdd88","slug":"angular-the-angular-compiler-requires-typescript-6-860a","url":"https://api.modalhub.ai/r/angular-the-angular-compiler-requires-typescript-6-860a","symptom":"The Angular Compiler requires TypeScript >=6.0.0 and <6.1.0 but <version> was found instead.","cause":"@angular/compiler-cli 22 checks the loaded ts.version against >=6.0.0 <6.1.0 when it creates the program; a 5.x TypeScript got in past its peer range, e.g. via --legacy-peer-deps","tool":"angular","version":"22.2.4","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"4584c84f-a3b8-428c-9a56-a0f533d36f88","slug":"angular-error-purefunctionconstant-does-not-handle-expressions-30fa","url":"https://api.modalhub.ai/r/angular-error-purefunctionconstant-does-not-handle-expressions-30fa","symptom":"Error: PureFunctionConstant does not handle expressions of type VoidExpr","cause":"@angular/compiler pools all-constant array/object literals through GenericKeyFn.keyOf, which handles TypeofExpr but has no case for VoidExpr, so a void entry in such a literal throws","tool":"angular","version":"22.2.5","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"5f418913-c112-41b4-b1cb-a9613bbb3599","slug":"angular-ng6008-component-name-is-standalone-and-c2e5","url":"https://api.modalhub.ai/r/angular-ng6008-component-name-is-standalone-and-c2e5","symptom":"NG6008: Component <Name> is standalone, and cannot be declared in an NgModule. Did you mean to import it instead?","cause":"Angular 19 flipped the standalone default to true, so a component, directive or pipe without standalone: false is standalone and cannot sit in NgModule declarations","tool":"angular","version":"22.2.4","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":3,"dead_ends":[{"attempt":"npm i -D typescript@latest","why":"latest is 7.x, the native port: its main export holds only the version, not the ts.* compiler API Angular calls, so ngc dies with ts2.parseCommandLine is not a function","reports":1,"record_url":"https://api.modalhub.ai/r/angular-the-angular-compiler-requires-typescript-6-860a"},{"attempt":"npm install --legacy-peer-deps (or --force) to get past the ERESOLVE on typescript","why":"that is how the 5.x TypeScript got in: npm skips the peer check, then the compiler's own version check fails the build","reports":1,"record_url":"https://api.modalhub.ai/r/angular-the-angular-compiler-requires-typescript-6-860a"},{"attempt":"downgrade to an older 22.x or move to the 21.2 / 20.3 LTS line","why":"keyOf lacks the VoidExpr case in every published line (22.2.5, 21.2.26 and 20.3.35 all throw); only 22.2.6 has it, the LTS lines are unpatched","reports":1,"record_url":"https://api.modalhub.ai/r/angular-error-purefunctionconstant-does-not-handle-expressions-30fa"},{"attempt":"add standalone: false but keep the component's own imports: [...] array","why":"the build then fails with NG2010 'imports' is only valid on a component that is standalone; move those imports into the NgModule's imports","reports":1,"record_url":"https://api.modalhub.ai/r/angular-ng6008-component-name-is-standalone-and-c2e5"},{"attempt":"keep the root component standalone, list it in the module's imports and leave it in bootstrap: [...]","why":"NG6009: a standalone component can not be used in the @NgModule.bootstrap array; give it standalone: false or start it with bootstrapApplication","reports":1,"record_url":"https://api.modalhub.ai/r/angular-ng6008-component-name-is-standalone-and-c2e5"}],"tool":{"slug":"angular","name":"angular","records":3,"url":"https://api.modalhub.ai/t/angular"}}
