Having upgraded from webpack 4.46.0 to 5.45.1 I am encountering the following error during the build:
Error: Compiling RuleSet failed: Properties options are unknown (at ruleSet[1].rules[6]: [object Object])
Can someone clarify what exactly this error means? I can't work it out as it is so unsemantic. Do I need to set options? If so which?
It seems to point towards the settings in module.rules, but the 6th entry is just an array of loaders and has no options.
Previously these were loaded using the loaders property.
module: {
rules: [
...5 other entries...,
{
test: /\/custom-file.js$/,
use: [
'cache-loader',
path.resolve(__dirname, '../build/package/custom-webpack-loader.js'),
],
},
],
},
