Webpack schema not validating correctly
Hello, I am using webpack 4.41.6, and WebStorm 2019.3 and when I set up the config file like this:
optimization: {
splitChunks: {
cacheGroups: {
vendors: {
test : /node_modules/,
name : 'vendor',
chunks: 'all'
}
}
}
},
I get an error that is being validated against the "not" schema of webpack:
https://github.com/webpack/webpack/blob/master/schemas/WebpackOptions.json#L1445
However, checking it does not seem to match the "not" part of the webschema, since it requires a test property in cachegroups, that my config file does not have, so I am assuming this is some kind of error with WebStorm schema validation.
Please sign in to leave a comment.
I don't have any issues reported when using similar configuration (with
):
Please share your webpack configuration file
Please share a file itself, not a screenshot
Sorry about that, this is my webpack file:
thank you! still no luck in reproducing the issue (checked in 2019.3.3 and 2020.1 EAP):
Did you try invalidating caches (File > Invalidate caches, Invalidate and Restart)? Can you reproduce the issue in a new project?
What IDE version do you use? looks similar to https://youtrack.jetbrains.com/issue/WEB-43117, that is fixed in 2019.3.2
Hello, updating it to 2019.3.3 seems to have fixed it! Thanks