-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to load template.html #199
Comments
I found a solution for my case: Within my .ts components, I was forgetting to remove the space between the ":" of templateUrl
rather than
|
@abalad — Thank you for posting your solution. Much appreciated! 👍 |
I'd like to point out that if you have template url in a sibling folder, it doesn't work... And I solved by using inline templates... |
I'm running into this same issue right now, and have tried both of your suggestions (space or no space between colons, and removing sibling folders in /lib) but am still running into "Failed to load button.component.html". Any other suggestions or ideas I could try? Here's what happens when i package my library:
I just bumped the version # to see if that was the issue, but no luck. I'd imagine there would be The error references |
@karlnoelle are you unsing double quotes? If yes, try single quotes.
|
I was testing my package on a new installation of Angular CLI downloading my package from NPM and when using some modules of my application I got the following error returned:
The text was updated successfully, but these errors were encountered: