在進行 react
項目開發的時候,出現了這個錯誤,ValidationError: Invalid options object. Less Loader has been initialized using an options object that does not match the API schema
. 如下所示:Module build failed (from ./node_modules/less-loader/dist/cjs.js):
ValidationError: Invalid options object. Less Loader has been initialised using
an options object that does not match the API schema.
- options has an unknown property 'data'. These properties are valid:
object { implementation?, sassOptions?, prependData?, sourceMap?, webpackImpo
rter? }
at validate
at Object.loader