Build Tools: How to fix an error in package.json after installing Prettier

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


After installing the prettier config for Astro, I had an error saying I had an error in my package.json file, on a line that didn’t actually exist in such file.

Turned out I had an empty tailwind.config.js and adding two empty curly brackets fixed the issue:

{
}

Lessons in this unit:

0: Introduction
1: Vite Tutorial
2: What is SWC?
3: Fix error in tsconfig.json "cannot find type definition file for node"
4: ▶︎ How to fix an error in package.json after installing Prettier
5: Fix a PostCSS Webpack error ruleSet rules oneOf... etc etc