Affected versions
webpack: 3.10.0
ng-cache-loader: >= 0.0.24
Webpack config
{
test: /\.html$/,
loader: 'ng-cache',
...
}
Error
Module build failed: TypeError: Cannot read property 'prefix' of null
Workaround
Append ? to loader:
loader-utils#getOptions returns null on empty this.query. Prior to version 0.0.24, loader-utils#parseQuery was used, which returned {} on empty this.query.
Workaround is simple, but I still consider it a bug.