Upgraded to latest meteor METEOR@1.3.4.4 and I started having problem with:
Error: [angular-meteor][err][404] client/login/login.view.html - HTML template does not exists!
I tried deleting .meteor folder and reinstalling, meteor reset uninstall and reinstall angular-templates
but with no success. What could be the problem?
I’ve just encountered the same issue and after some investigation, I found out that the problem was there’s no template cache being generated. I’ve fixed it by importing every single html templates.
Maybe this is related to the fact that during my updade to meteor 1.3.4.4
angular2-html-templates@0.5.4 was uninstalled and
urigo:static-html-compiler@0.1.4 was installed?
For me the workaround was to downgrade the project-dependencies to the previous v1.3.4.1 state.
@sauermann Yes, that’s basically the cause of the issue. @otporsad If you don’t want to import every single html templates, you can just downgrade it to the previous version.
With 1.3.4.4 and the current versions of angular2 tooling you should use
import template from './template.html'
Since the default export is no longer a URL but the template content. Though this breaks backward compatibility, it is better in a way since it reduces a level of indirection (i.e. using $templateCache) to get the template.
Could somebody please tell me how to get this working? Have spent days on this. How to downgrade, what to downgrade. I do not see any package “angular-templates” in any of the example code or tutorial code. Thanks!
@hadarg i downgraded to 1.0.3 but not working for me. Giving the same 404 “HTML template does not exists!”. Can you please write the steps though which you solved the issue.
removing angular-templates@1.0.3 and installing the latest 1.0.8_1 didnt help solving the issue. Maybe following the tutorial in a new directory from scratch solve the issue with @1.0.8_1. I will you on this @Urigo. Currently it is giving the same error in console.
About issues with files from directories other than imports. You can add import './path/to/file.html' to your project so angular-templates won’t lazy load it.
What’s a main template? A file that contains <body/> and <head/> elements
What’s a template? A file to be used with components etc
Let’s say you have a file client/main.html and it contains <body> element so it’s your main template.
You don’t have to import it because the compiler checks if it is a main template, if so it’s being used in your app automatically.