You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm happily loading the main template like this and it works great:
import HTML from './about.rebars.hbs';
Handlebars,
template: HTML,
data: {
(i had to use webpack raw-loader, fyi)
but when i try to load a partial similarly:
import manifestDescriptionHTML from '../../partials/manifestDescription.rebars.hbs';
partials: {
manifestDescription: manifestDescriptionHTML
i get error: Uncaught (in promise) Exception {description: undefined, fileName: undefined, lineNumber: undefined, endLineNumber: undefined, message: "Attempting to register a partial called "manifestDescription" as undefined", …}
it seems to want a .load(url) (which doesnt work with webpack)
I can do :
app.instance.registerPartial('manifestDescription', manifestDescriptionHTML);
which isn't terrible but seems inconsistent.
Thanks,
The text was updated successfully, but these errors were encountered:
great little lib. btw.
so i am using this with webpack. (dont ask why)
I'm happily loading the main template like this and it works great:
(i had to use webpack raw-loader, fyi)
but when i try to load a partial similarly:
i get error:
Uncaught (in promise) Exception {description: undefined, fileName: undefined, lineNumber: undefined, endLineNumber: undefined, message: "Attempting to register a partial called "manifestDescription" as undefined", …}
it seems to want a .load(url) (which doesnt work with webpack)
I can do :
app.instance.registerPartial('manifestDescription', manifestDescriptionHTML);
which isn't terrible but seems inconsistent.
Thanks,
The text was updated successfully, but these errors were encountered: