Closed mfreeman-xtivia closed 5 years ago
I wonder if someone could at least tell me what the template object is supposed to represent at this point?
At the point of the errors it has keys=["_pluginCompat","outputOptions","hooks"] which at least explains the error. Is this an object that changed from Webpack 3 to Webpack 4?
Sorry for the late reply, I should have seen it earlier.
What's your webpack version?
I haven't tested the lower version of webpack 4, so maybe it's not compatible here. In my use, webpack version is ^4.26.1.
My version of webpack is 4.29.6
Reproducible on demand using the example webpack config
Your output.library
config caused this bug, which can not working in SplitChunk
.
I have released version 1.0.17 to be compatible with output.library
, please have a try.
Trying to use the plugin on below webpack config file. It generates the main chunk file just fine and then throws this function when attempting to process the vendor file. This appears to be some kind of issue at line 39 of lib/wrapper.js:
const realName = template.getAssetPath(name, {