The parse error in index.html dev-to-uploads.s3.amazonaws.com/i/...
Alright, I managed to solve the problem in my machine. It seems like prettier isn't able to decide which parser to use for some reason. Add the following in your .prettierrc:
.prettierrc
"overrides": [ { "files": "*.component.html", "options": { "parser": "angular" } }, { "files": "*.html", "options": { "parser": "html" } } ]
If this fixes your problem, please tell me so that I can update the article!
Thanks Giovanni for the help!! Its working in my machine
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The parse error in index.html
dev-to-uploads.s3.amazonaws.com/i/...
Alright, I managed to solve the problem in my machine. It seems like prettier isn't able to decide which parser to use for some reason. Add the following in your
.prettierrc
:If this fixes your problem, please tell me so that I can update the article!
Thanks Giovanni for the help!! Its working in my machine