Cannot find module postcss-import #41
-
Using v3.4.17 I used the example postcss.config.js from the documentation in tailwindcss-rails.
when I run
Based on the docs for the tailwind-cli and this gem this should work? Any idea where to start? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
@mackross The readme in this project, and in the tailwind docs assumes you already have postcss and the plugins installed via npm, and so some of the installation details are elided. When you see the error message "Cannot find module 'postcss-import'" my understanding is that this is telling you that tailwindcss cannot find that module in the installed npm packages. |
Beta Was this translation helpful? Give feedback.
-
I get what you're saying https://github.com/rails/tailwindcss-rails < it's this readme which led me to think it would work with postcss. It's quite likely if you're using tailwindcss-rails you're not using npm. |
Beta Was this translation helpful? Give feedback.
@mackross The readme in this project, and in the tailwind docs assumes you already have postcss and the plugins installed via npm, and so some of the installation details are elided.
When you see the error message "Cannot find module 'postcss-import'" my understanding is that this is telling you that tailwindcss cannot find that module in the installed npm packages.