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
I use vue-cli to generate my project. And I use less. I need to use a less plugin. But error occurred. Plugin.install is not a function.
I noticed that less-loader use loader-utils to get options. And in loader-utils, the query is a string like this ?{"plugins":[{}],"sourceMap":false}. So the loader can't get the correct plugin instance (the install function is in the prototype object).
I found that if I use use option, the query is an object. I am not familiar to webpack. So how can I fix this.
I use
vue-cli
to generate my project. And I useless
. I need to use a less plugin. But error occurred.Plugin.install is not a function
.I noticed that
less-loader
useloader-utils
to getoptions
. And inloader-utils
, the query is a string like this?{"plugins":[{}],"sourceMap":false}
. So the loader can't get the correct plugin instance (the install function is in the prototype object).I found that if I use
use
option, the query is an object. I am not familiar to webpack. So how can I fix this.similar ref
P.S. less-loader v4.0.1 not this bug
The text was updated successfully, but these errors were encountered: