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
when I ran :Prettier to format my scss file. I got this error, Could you help me fixing it? thanks
[coc.nvim]: UnhandledRejection: Couldn't resolve parser "postcss"
Error: Couldn't resolve parser "postcss"
at resolveParser (/Users/bbb/Sites/rot-project/ui-rot/node_modules/prettier/index.js:11343:15)
at normalize$1 (/Users/bbb/Sites/rot-project/ui-rot/node_modules/prettier/index.js:11438:18)
at formatWithCursor (/Users/bbb/Sites/rot-project/ui-rot/node_modules/prettier/index.js:15034:12)
at /Users/bbb/Sites/rot-project/ui-rot/node_modules/prettier/index.js:51620:12
at Object.format (/Users/bbb/Sites/rot-project/ui-rot/node_modules/prettier/index.js:51640:12)
at /Users/bbb/.config/coc/extensions/node_modules/coc-prettier/node_modules/prettier-stylelint/src/index.js:129:30
The text was updated successfully, but these errors were encountered:
The issue is that coc-prettier is using prettier-stylelint to interface with prettier for formatting scss. That project hasn't been updated in 4 years. Recommendation is to switch to stylelint-prettier which is under development and maintained by the prettier organisation.
when I ran
:Prettier
to format my scss file. I got this error, Could you help me fixing it? thanksThe text was updated successfully, but these errors were encountered: