Prettier-atom: Error: 'prettier-atom failed: No parser could be inferred for file: ...example.html'

Created on 16 Jun 2018  ·  10Comments  ·  Source: prettier/prettier-atom


Whenever writing JavaScript in a script tag, in an html file, the error goes off upon saving.

"prettier-atom failed: No parser could be inferred for file: ...index.html"

bug

Most helpful comment

Getting the same error when I save a script (so no extension and a shebang up top) in my editor (emacs).

All 10 comments

Getting the same error when I save a script (so no extension and a shebang up top) in my editor (emacs).

Getting the same error in Atom editor when I'm trying to save .htmlhintrc file. I already ran apm install linter-htmlhint

Getting the same error, But it can be solve JUST if you place ALL including the script tag on 1 Line. @BenKai3

Getting the same error.

Same error in IntelliJ, when a codecoverage report (index.html) is generated.

🙋‍♂️

Any fixes? this is a real bummer

This should get fixed in #404 which I'm planning to release very soon

I am also getting same error for PHP files
[warn] Ignored unknown option { phpVersion: "7.2" }.
[warn] Ignored unknown option { trailingCommaPHP: true }.
[warn] Ignored unknown option { braceStyle: "1tbs" }.
src/Team/Type.class.php[error] No parser could be inferred for file: src/Team/Type.class.php

Got this same error with PHP today.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vyrruss picture vyrruss  ·  5Comments

ryanpcmcquen picture ryanpcmcquen  ·  3Comments

tleunen picture tleunen  ·  7Comments

jjwyse picture jjwyse  ·  5Comments

Andersos picture Andersos  ·  6Comments