I'm using a monorepo. How does the 'cannot find prettier package.json' error apply?

Question

Grade: Education Subject: Support
I'm using a monorepo. How does the 'cannot find prettier package.json' error apply?
Asked by:
83 Viewed 83 Answers

Answer (83)

Best Answer
(339)
In a monorepo, Prettier can be installed at the root level or within individual packages. If installed at the root, ensure your editor or build process is looking at the root `package.json` and configuration. If installed per-package, ensure the package where you're trying to use Prettier has it as a dependency and a valid configuration.