title: Why can't Prettier find the "prettier-plugin-tailwindcss" plugin on a Remix app?
body: <h1>Background</h1>
  <p>I'm trying to setup a Remix app using Tailwind CSS for styling and Prettier for styling. Recently the Tailwind team released their official classes-sorting plugin but for some reason Prettier says it &quot;can't find it&quot;.</p>
  <p>The error looks like the following in the Prettier output:</p>
  <pre class="lang-sh prettyprint-override"><code>
      [&quot;INFO&quot; - 1:17:09 PM] Formatting file:///home/juanzitelli/dev/human-decode/burger-reviews-hd/app/routes/dashboard/index.tsx
      [&quot;ERROR&quot; - 1:17:09 PM] Error resolving prettier configuration for /home/juanzitelli/dev/human-decode/burger-reviews-hd/app/routes/dashboard/index.tsx
  
  </code></pre>
  <p>My file structure (files related to the problem) looks like this:</p>
  <pre><code>
      /prettier.config.js
      /tailwind.config.js
  
  </code></pre>
  <p><code>/package.json</code></p>
  <pre><code>
      &quot;devDependencies&quot;: {
          &quot;@remix-run/dev&quot;: &quot;^1.1.3&quot;,
          &quot;@remix-run/serve&quot;: &quot;^1.2.2&quot;,
          &quot;@types/node&quot;: &quot;^17.0.21&quot;,
          &quot;@types/react&quot;: &quot;^17.0.24&quot;,
          &quot;@types/react-dom&quot;: &quot;^17.0.9&quot;,
          &quot;autoprefixer&quot;: &quot;^10.4.2&quot;,
          &quot;concurrently&quot;: &quot;^7.0.0&quot;,
          &quot;dotenv&quot;: &quot;^16.0.0&quot;,
          &quot;postcss&quot;: &quot;^8.4.6&quot;,
          &quot;prettier&quot;: &quot;^2.5.1&quot;,
          &quot;prettier-plugin-tailwindcss&quot;: &quot;^0.1.8&quot;,
          &quot;prisma&quot;: &quot;^3.10.0&quot;,
          &quot;tailwindcss&quot;: &quot;^3.0.23&quot;,
          &quot;typescript&quot;: &quot;^4.1.2&quot;
        },
        &quot;engines&quot;: {
          &quot;node&quot;: &quot;&gt;=14&quot;,
          &quot;yarn&quot;: &quot;1.22.17&quot;
        },
  
  Prettier config 
  
  `/prettier.config.js`
  
      module.exports = {
        plugins: [require('prettier-plugin-tailwindcss')],
      };
  
  
  &gt; When hovering over that &quot;require&quot; I get an error that says:
  
  module &quot;/home/juanzitelli/dev/human-decode/burger-reviews-hd/node_modules/prettier-plugin-tailwindcss/dist/index&quot;
  Could not find a declaration file for module 'prettier-plugin-tailwindcss'. '/home/juanzitelli/dev/human-decode/burger-reviews-hd/node_modules/prettier-plugin-tailwindcss/dist/index.js' implicitly has an 'any' type.
    Try `npm i --save-dev @types/prettier-plugin-tailwindcss` if it exists or add a new declaration (.d.ts) file containing `declare module 'prettier-plugin-tailwindcss';`ts(7016)```
  
  
  </code></pre>