question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to load template.html

See original GitHub issue

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:

GET http://localhost:4200/button.html 404 (Not Found) 
Failed to load button.html

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
abaladcommented, Sep 19, 2017

I found a solution for my case:

Within my .ts components, I was forgetting to remove the space between the “:” of templateUrl

templateUrl : './button.html',

rather than

templateUrl: './button.html',

1reaction
jvandemocommented, Sep 20, 2017

@abalad — Thank you for posting your solution. Much appreciated! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to load template in angularjs - Stack Overflow
Angular JS Templates:- the file 'todo.tpl.html' which is a template file doesn't load? How do I fix this? Hot Network Questions.
Read more >
[$compile:tpload] Failed to load template · Issue #1311 - GitHub
The component I am testing is using the "templateUrl" to provide a template: import { Component, Inject, Input, Output, EventEmitter, ...
Read more >
HTML : angularjs Error: [$compile:tpload] Failed to load template
HTML : angularjs Error: [$compile:tpload] Failed to load template [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] HTML ...
Read more >
Angular JS Error: $compile:tpload: Failed to load template
So I am trying to load the template in my directive. This directive is reusable. But I am failing to load the template....
Read more >
Unable to load template - NodeBB
It seems to originate from ajaxify.loadTemplate. The template has a script attached to it via plugin.json as such: "static/lib/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found