Help: No parser could be inferred for file #463
-
Hello! About 10 minutes ago I blundered (#462) by not seeing the Discussions tab. So, here goes again. I'm trying to use the Pug plugin for basic functionality, and have run the top two commands on the docs, but to no avail. Instead, when I run
I'm not sure if I'm supposed to have a configuration or anything? I've got If anyone has any suggestions, I'd appreciate them! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think prettier v3 changed something so you need to load the plugin slightly differently |
Beta Was this translation helpful? Give feedback.
-
Thanks- seems v3 has changed things after all. The command is:
|
Beta Was this translation helpful? Give feedback.
Thanks- seems v3 has changed things after all. The command is:
npx prettier --write "**/*.pug" --plugin="@prettier/plugin-pug"