What version of prettier-plugin-tailwindcss are you using?
^0.5.1
What version of Tailwind CSS are you using?
^3.3.3
What version of Node.js are you using?
v18.14.0
What package manager are you using?
pnpm
What operating system are you using?
macOS
Describe your issue
I randomly upgraded the package today and it caused Prettier to stop working (I see that you only released it 13 minutes ago) and it gives this error:
ReferenceError: __filename is not defined
at Uz (file:///Users/amosbastian/Development/contentbase/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2379:3613)
at file:///Users/amosbastian/Development/contentbase/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2379:3791
at Vz (file:///Users/amosbastian/Development/contentbase/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2379:3800)
at CG (file:///Users/amosbastian/Development/contentbase/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2379:40916)
at cI (file:///Users/amosbastian/Development/contentbase/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2379:40215)
at async Object.parse (file:///Users/amosbastian/Development/contentbase/node_modules/.pnpm/[email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs:2379:43865)
at async parse (file:///Users/amosbastian/Development/contentbase/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:16712:11)
at async coreFormat (file:///Users/amosbastian/Development/contentbase/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:18033:7)
at async formatWithCursor (file:///Users/amosbastian/Development/contentbase/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:18235:14)
at async Module.format2 (file:///Users/amosbastian/Development/contentbase/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:21425:25)
Downgrading to 0.4.1 fixes it
What version of
prettier-plugin-tailwindcssare you using?^0.5.1
What version of Tailwind CSS are you using?
^3.3.3
What version of Node.js are you using?
v18.14.0
What package manager are you using?
pnpm
What operating system are you using?
macOS
Describe your issue
I randomly upgraded the package today and it caused Prettier to stop working (I see that you only released it 13 minutes ago) and it gives this error:
Downgrading to 0.4.1 fixes it