Copyright 2025

The Valley of Code

A Flavio Copes project

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

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:

{
}

Join my AI Workshop !

The Web Development BOOTCAMP cohort starts in February 2026