In my EmberJS application, I have precompiled all of my handlebars templates so that they are loaded as pure Javascript files.
However, I am encountering an issue where these precompiled templates are not being added to the Ember container as expected. Instead, I receive an error message when specifying a template for my view:
Uncaught Error: assertion failed: You specified the templateName "application" for <MyApp.ApplicationView:ember164>, but it did not exist.
Below is the code snippet for my view:
window.MyApp.ApplicationView = Ember.View.extend({
templateName: 'application'
});
After debugging, I noticed that the views do not seem to be registered in the Ember container. Is there a specific step I need to take to properly register precompiled templates with the container? If so, could you please provide guidance on how to do so?
Edit: I have been compiling the templates using the handlebars npm package.