We've moved discussions to Discord

How to add tailwind plugins?

Ugurcan Kaya
Chris Oliver   I was trying to test tailwindUI however plugin module in tailwind.config does not seem to work.  

I get "Cannot find module 'tailwindcss/plugin'  " error

// tailwind.config.js 
module.exports = { 
 plugins: [ 
  require('@tailwindcss/ui'), 
 ] 
} 

I see environment.plugins.push() in postcss.config file.

Would that be the place to add tailwind plugins?
John Chambers
You probably still need to add the @tailwindcss/ui dependency to package.json and it should work then.
Run yarn add @tailwindcss/ui

Docs here: https://www.notion.so/Tailwind-UI-Documentation-f9083ed0e2694690ac89253e88afb2b6#c9efa316d69a444fa0bafc69ca4d0966


Ugurcan Kaya
yes, I followed that documentation but still getting "Cannot find module 'tailwindcss/plugin'  " error
Ugurcan Kaya
John Chambers   tailwind needs to be upgraded to 1.2 and it works after that 👍  Jumpstart uses 1.1 currently
John Chambers
Awesome. Glad you got it sorted!
With the latest version of tailwindui I had to update tailwindui to 1.3.5
Notifications
You’re not receiving notifications from this thread.