You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spend hours trying to get the plugin to work. Seems like sass-loader and less-loader both changed their options object shapes. I got to the bottom of the issue by exploring antdSassLoader.js and antdLEssLoader.js.
antdSassLoader.js (the error was something like options has an unknown property 'importer')
The issue there is that there is no importer prop in options anymore, it's in sassOptions. So should be something like this:
antdLEssLoader.js (the error was something like options has an unknown property 'modifyVars')
The issue here is that modifyVars was moved inside lessOptions prop and you also must pass javascriptEnabled: true (without is the error you're getting is (Inline JavaScript is not enabled. Is it set in your options?) to lessOptions like this:
Spend hours trying to get the plugin to work. Seems like sass-loader and less-loader both changed their
options
object shapes. I got to the bottom of the issue by exploringantdSassLoader.js
andantdLEssLoader.js
.antdSassLoader.js
(the error was something likeoptions has an unknown property 'importer'
)The issue there is that there is no
importer
prop in options anymore, it's insassOptions
. So should be something like this:antdLEssLoader.js
(the error was something likeoptions has an unknown property 'modifyVars'
)The issue here is that
modifyVars
was moved insidelessOptions
prop and you also must passjavascriptEnabled: true
(without is the error you're getting is (Inline JavaScript is not enabled. Is it set in your options?
) tolessOptions
like this:Without those changes, you're getting a bunch of different errors.
Screenshots of "successful" configs are attached.
The text was updated successfully, but these errors were encountered: