While compiling the less files, i come across this error
Inline JavaScript is not enabled. Is it set in your options?
How do i pass in options to the less compiler in next-less?
How were you able to resolve this?
module.exports = withLess({
lessLoaderOptions: {
javascriptEnabled: true,
},
})
@simonyouth
error - ./node_modules/antd/es/style/index.less
ValidationError: Invalid options object. Less Loader has been initialized using an options object that does not match the API schema.
- options has an unknown property 'javascriptEnabled'. These properties are valid:
object { lessOptions?, prependData?, appendData?, sourceMap?, implementation? }

Most helpful comment