Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Warning: parser with value "postcss" is deprecated. Use "css", "less" or "scss" instead. #3

Open
wbern opened this issue Oct 30, 2017 · 17 comments · Fixed by ismail-syed/prettier-stylelint-formatter#1
Assignees

Comments

@wbern
Copy link

wbern commented Oct 30, 2017

./node_modules/.bin/prettier-stylelint src/assets/css/ahu.less --quiet
Warning: `parser` with value "postcss" is deprecated. Use "css", "less" or "scss" instead.

Not sure if it's because of prettier or this plugin.

https://prettier.io/docs/en/options.html#parser

@hugomrdias
Copy link
Owner

thank you for reporting i'll check this out, also need to update the vscode extension.

@hugomrdias hugomrdias self-assigned this Oct 30, 2017
@kaelig
Copy link

kaelig commented Nov 1, 2017

I thought I'd open a PR here but the discussions over here started making my head spin!

@mmellado
Copy link

mmellado commented Nov 24, 2017

Is there any progress on this issue? There is a fork referenced above that seems to be solving it. On the other hand, the parser can simply become a new parameter (not sure if the new css parser would work with less and scss). It also seems like the vscode extension is using an older version of this package. I see discrepancies between running prettier-stylelint via command line and saving a file while using prettier.stylelintIntegration in vsCode (the ordes specified by stylelint-order is respected by the command line but not by the vscode extension)

@hugomrdias
Copy link
Owner

hugomrdias commented Nov 24, 2017 via email

@mmellado
Copy link

mmellado commented Dec 6, 2017

bump

@csantiago132
Copy link

hey man, great tool!! I am having this issue now so im wondering if im doing something wrong

@wbern
Copy link
Author

wbern commented Feb 20, 2018

@hugomrdias Looking at 0cfcb62 in @JonathanWolfe's fork, it seems this fix should be fairly easy, or is there more to it?

@kaelig
Copy link

kaelig commented Feb 21, 2018

In case this helps, @ismail-syed also forked the repo and applied a different fix than @JonathanWolfe: ismail-syed@1f0cf83

@icreatestuff
Copy link

I'm seeing a 'Couldn't resolve parser "postcss"' message in VSCode's Output panel whenever I save a .scss file. Sounds like the same/similar issue running v0.4.2

@wbern
Copy link
Author

wbern commented Mar 16, 2018

@kaelig @ismail-syed's fix is not a good one, because not everyone uses "css".

prettier supports automatically recognizing the type used, so it is completely fine to simply remove the property, like what @JonathanWolfe did.

arneson added a commit to arneson/prettier-stylelint that referenced this issue May 9, 2018
Remove "parser" override (Fixes hugomrdias#3)
@meszaros-lajos-gyorgy
Copy link

bump 2

@atipugin
Copy link

Any progress on it? Still getting this warning :(

@meszaros-lajos-gyorgy
Copy link

bump 3

@mazhermon
Copy link

bump 4 :)

@meszaros-lajos-gyorgy
Copy link

I'm afraid this project is no longer maintained :( Anyone care to fork it and continue the work?

@isellsoap
Copy link

In the meantime I published a temporary package, containing updated dependencies and the fix for this warning (which @ismail-syed opened this pull request for #6).

-> https://www.npmjs.com/package/prettier-stylelint-temp

@buyou0821
Copy link

$ prettier-stylelint --write -q 'src/**/*.{css,scss,less}' 
{ parser: "postcss" } is deprecated; we now treat it as { parser: "css" }.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet