Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upERROR in Cannot use a JavaScript or TypeScript file for styleUrl or templateUrl. #17728
Comments
|
Updated an angular 7 app to angular 9.1.9. Received this error. Any solutions or suggestions to better debug this? |
|
Make sure the styles and/or template you reference in your component have |


Command (mark with an
x)Is this a regression?
No
Description
When I change the
templateUrlextension to.jsor.ts, I'm getting:This doesn't provide enough context (e.g., where the error occurred).
Create a new project and update the extension of the
templateUrlforAppComponentto.tsor.js.v9.1