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 v3 doesn't support option "pluginSearchDirs": false #187

Closed
TristanBrotherton opened this issue Jul 19, 2023 · 3 comments
Closed
Assignees

Comments

@TristanBrotherton
Copy link

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

What version of Tailwind CSS are you using?
3.3.3

What version of Node.js are you using?
18.16.0

What package manager are you using?
NPM

What operating system are you using?
OSX

Describe your issue

I am aware Prettier v3 support is lacking and is a known issue, but I wanted to flag that when using Prettier v3 it will complain about the option pluginSearchDirs if it is set as per the prettier-plugin-tailwindcss documentation outputting the error:

[warn] Ignored unknown option { pluginSearchDirs: false }.

@thecrypticace thecrypticace self-assigned this Jul 20, 2023
@thecrypticace
Copy link
Contributor

Yeah, we need to rework the readme to more clearly define up-to-date instructions when using Prettier v3.

In this case it's not an error — just a warning — since it does not stop the build / formatting process. But I'll leave this open as a reminder to do a second pass on the readme this coming week.

@thecrypticace
Copy link
Contributor

I've tweaked the readme a bit to hopefully better address this. Thanks!

@vhscom
Copy link

vhscom commented Sep 25, 2023

Those landing here be sure you also check your prettier config file as noted in the docs. Some examples of things you may need to change to upgrade to prettier 3.x can be found detailed here: #186 (comment)

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

3 participants