prettier-atom failed: No parser and no file path given, couldn't infer a parser.

Created on 28 May 2018  路  4Comments  路  Source: prettier/prettier-atom

Versions:
prettier-atom: 0.53.0
prettier: 1.13
atom: 1.27.1

I upgraded prettier from 1.12 to 1.13 and now when I try to save a file I'm getting the following error:

screenshot 2018-05-28 19 00 47

Everything worked fine and as expected up until the upgrade of the prettier package.

external

Most helpful comment

Oops actually you were right, this was a Prettier bug, I didn't read the link lol

All 4 comments

@hundsim https://github.com/prettier/prettier/issues/4567

as an interim you can (or might have to) specify the parser in your prettier config

e.g. parser: babylon

Thanks, that made it!

I'm going to reopen as this does need to be addressed.

Oops actually you were right, this was a Prettier bug, I didn't read the link lol

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonyyz picture jonyyz  路  6Comments

ryanpcmcquen picture ryanpcmcquen  路  3Comments

derwaldgeist picture derwaldgeist  路  5Comments

mgrip picture mgrip  路  5Comments

dan-mckay picture dan-mckay  路  7Comments