Recently, when I compile my scss files I get an error. The error message says:
Browserslist: caniuse-lite is outdated. Please run next command
n
On the Mac, I deleted node_modules and package-lock.json, then ran npm install and it fixed my issue.
Continuation of answer above.
Had the same "plugin error" as @MehrdadBabaki. I uninstalled web compiler, deleted the AppData WebCompiler folder mentioned above, then reopened VS2019 and reinstalled web compiler.
THEN I went to the WebCompiler folder again and did npm i autoprefixer@latest
npm i caniuse-lite@latest
and npm i caniuse-lite browserslist@latest
In my case, I deleted out the caniuse-lite
, browserslist
folders from node_modules
.
Then I type the following command to install the packages.
npm i -g browserslist caniuse-lite --save
worked fine.
I've fixed this issue by doing, step by step:
node_modules
package-lock.json
, npm --depth 9999 update
npm install
To fix the issue you can type below command:
'npm -g update'
In my case this works fine...
sudo npm i -g browserslist caniuse-lite