'Code style issues found in the above file(s). Forgot to run Prettier?

I have this problem when I try to check style with prettier --check

Code style issues found in the above file(s). Forgot to run Prettier?


Solution 1:[1]

 npx prettier --write .

This command overwrites the code and makes it beautiful.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1