Skip to content

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:

{
}

I wrote 21 books to help you become a better developer:

  • HTML Handbook
  • Next.js Pages Router Handbook
  • Alpine.js Handbook
  • HTMX Handbook
  • TypeScript Handbook
  • React Handbook
  • SQL Handbook
  • Git Cheat Sheet
  • Laravel Handbook
  • Express Handbook
  • Swift Handbook
  • Go Handbook
  • PHP Handbook
  • Python Handbook
  • Linux Commands Handbook
  • C Handbook
  • JavaScript Handbook
  • Svelte Handbook
  • CSS Handbook
  • Node.js Handbook
  • Vue Handbook
...download them all now!

Related posts that talk about tools: