<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅 Oh hi there! 😄 To expedite issue processing please search open and closed issues before submitting a new one. Existing issues often contain information about workarounds, resolution, or progress updates. 🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅--> # 🐞 Bug report ### Command (mark with an `x`) <!-- Can you pin-point the command or commands that are effected by this bug? --> <!-- ✍️edit: --> - [ ] new - [ ] build - [x] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] version - [ ] doc ### Is this a regression? No ### Description When I change the `templateUrl` extension to `.js` or `.ts`, I'm getting: >ERROR in Cannot use a JavaScript or TypeScript file for styleUrl or templateUrl. This doesn't provide enough context (e.g., where the error occurred). ## 🔬 Minimal Reproduction Create a new project and update the extension of the `templateUrl` for `AppComponent` to `.ts` or `.js`. ## 🔥 Exception or Error >ERROR in Cannot use a JavaScript or TypeScript file for styleUrl or templateUrl. ## 🌍 Your Environment v9.1