Bugfix: Bug 8: TypeError fn is not a function at initFeatures — ɵɵSt...
Documentation for Sessions
🐛 Bugfix: Bug 8: TypeError fn is not a function at initFeatures — ɵɵSt...
Date: 2026-03-24
Time: 20:22:56 UTC
Session: gspace1-267.8
Agent: angular
Confidence: 98%
Status: ✅ Documented
📋 Decision Context
Question:
Bug 8: TypeError fn is not a function at initFeatures — ɵɵStandaloneFeature not exported in Angular 20
Task: Not specified
🎯 Decision Made
Chosen:
Removed ɵɵStandaloneFeature from imports and features array in decorator-transformer.ts. Angular 20 handles standalone setup internally in ɵɵdefineComponent when standalone: true is set.
Options Considered:
- No alternatives documented
💭 Reasoning
Chrome DevTools confirmed typeof core.ɵɵStandaloneFeature === 'undefined' in Angular 20.1.8 runtime. The function was internalized — ɵɵdefineComponent({standalone: true}) automatically sets getStandaloneInjector. Passing undefined in features[] caused initFeatures to call fn() on undefined.
📁 Files Involved
libs/libs-structural/platform-preview/src/lib/compiler/decorator-transformer.ts
🔗 Related
- Decision ID:
dev_1774383776697_o1e87hb - Session: 267
- Workspace: gspace1
Auto-generated by MCP Smart Consolidation