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.
Affected versions
webpack:3.10.0ng-cache-loader:>= 0.0.24Webpack config
Error
Workaround
Append
?to loader:loader: 'ng-cache?'loader-utils#getOptionsreturnsnullon emptythis.query. Prior to version0.0.24,loader-utils#parseQuerywas used, which returned{}on emptythis.query.Workaround is simple, but I still consider it a bug.