I am using angular 1.5.3 with es6, webpack and jade patterns.
Everything works as expected, with the exception of component templates.
It works
var cmpnt = {
template: '<div>test</div>'
}
This also works (when I manually create the html file)
var cmpnt = {
template: require('./component.html')
}
This does not work
var cmpnt = {
template: require('./component.jade')
}
In the browser console, I get
Error: [$injector:unpr] Unknown provider: localsProvider <- locals
The file .jadeexists, and I use the require('./template.jade')application in many other places without problems.
Any ideas? More information can I provide?
source
share