-
Notifications
You must be signed in to change notification settings - Fork 29
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
Error working with Html-webpack-plugin #43
Comments
I found this response helpful: pcardune/handlebars-loader#110 (comment) |
Just a quick follow-up, it doesn't look like this will ever work with handlebars-loader. handlebars-loader does not add partials to the global Handlebars instance, which this library is looking for. If you manually load the partials into the Handlebars instance, you could potentially get this working. |
You are correct that https://gist.github.com/impankratov/18e862e9a54d2ce092138e1a7a052c12#file-webpack-config-js Closing this as it's more of an issue with the webpack loader than this library. |
well, I'm trying to get it to work right now but I think there is no hope for me here. The reason is why you can't make it work is just because of handlebars-loader doesn't use partials from runtime you pass to the loader. Maybe I'm wrong but I couldn't find any resource about manual registration of partials from handlebars instance for handlebars-loader. When I pass handlebars instance with already registered partials for some reason handlebars-loader can't find them. Don't be me and don't spend slipless nights on it. |
Since loading partials is beyond the scope of this package, this seems like an issue to be solved in handlebars-loader. Sorry it's not working for you. Might want to create an issue in their repo. |
I am using handlebars-layouts with webpack and I use Html-webpack-plugin to generate html file. But if i use extends, webpack throws below error:
ERROR in Template execution failed: Error: Missing helper: "extend"
I am using handlebars-loader with webpack and below is my webpack config.
The text was updated successfully, but these errors were encountered: