Open JSteunou opened 8 years ago
I have exactly the same issue. For me it's working with 1.0.2 and not 1.1.0 or 1.1.1.
If you're not bound to this loader because of some features, go with handlebars-template-loader @noirbizarre it's very descent, does the job without fuzz and the maintainer is active.
@JSteunou : Thanks, but I need some feature from handlebars-loader and 1.0.2 is working just fine :)
Just FYI, I usually look at and fix issues once every 3 months or so. If that's not fast enough for anyone, just submit a pull request. If you submit multiple good pull requests I'll even make you a maintainer.
No offence, I just thought this one was very stable and will fit my needs because it's the only one listed on webpack loader list documentation, but I encountered many bugs and frustration then I discover another loader that fit my needs on which I choose to participate on.
I had a weird compilation error using this loader & hbs v3
After hours I isolated the issue, this loader try to resolve helper path even for context "variable", and it gets crazy when it actually finds a file, taken as the researched helper, totally by coincidence, because a file with the same name that the context "variable" happens to be here.
Example
debug print I got this
notice the
Resolved helper /home/jerome/myProject/src/modules/login/views/forms\./email
and the explosion of handlebars.and if I rename the variable
email
byeeemail
everything goes fine and I got thisFor having working a little with hbsv1 ast and hbsv3 ast, I think some pieces of this loader are not hbsv3 compatible