Prettier Error: Missing visitor keys for 'undefined'

Author: leonwissenbergCreated Jul 28, 2026Updated Jul 28, 2026

What version of prettier-plugin-tailwindcss are you using?

v0.7.1 up to 0.8.1 (latest at date of report)

What version of Tailwind CSS are you using?

v3.4.17

What version of Node.js are you using?

v20.20.0

What package manager are you using?

pnpm

What operating system are you using?

Debian under WSL

Describe your issue

When Running Prettier via prettier -c on every html file in the repo it throws an Error: Missing visitor keys for 'undefined'. When removing "plugins": ["prettier-plugin-tailwindcss"] from .prettierrc everything runs through smoothly.

Gotta Link this Issue over from the prettier Main Repo as it seems to be related with this plugin: https://github.com/prettier/eslint-plugin-prettier/issues/771

Source: tailwindlabs/prettier-plugin-tailwindcss