Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier Plugin formatter for tailwind not working #3632

Open
Matteonegridev opened this issue Feb 20, 2025 · 1 comment
Open

Prettier Plugin formatter for tailwind not working #3632

Matteonegridev opened this issue Feb 20, 2025 · 1 comment

Comments

@Matteonegridev
Copy link

Type: Bug

I upgraded to Tailwind v4 and installed:
npm install -D prettier prettier-plugin-tailwindcss; but the :

{
"plugins": ["prettier-plugin-tailwindcss"]
}
in my .prettierrc file won't work.
Any solutions?

Extension version: 11.0.0
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.85GB (6.79GB free)
Process Argv --crash-reporter-id 2211662f-1b4b-43b8-a79a-71bfce9ed869
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31238123
customenabled:31241370
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686
copilothoveroff:31240707

@charliecode
Copy link

charliecode commented Feb 23, 2025

+1

I'm getting a similar issue with prettier-plugin-tailwindcss v0.6.11. Tailwindcss v3.4.17. v11.0.0 of your plugin. When I add it as a plugin to my .pretttierrc file and try to run it in VSC it's not handling my aliases correctly, getting an error that the module cannot be found. If I don't use aliases it works fine. This happens even though everthing works great via terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants