Errors when deploying Heroku : Precompiling assets failed. Error: Cannot find module 'daisyui' #375
Replies: 3 comments
-
I have explored the error details in the command, but there does not seem to be any new information.
|
Beta Was this translation helpful? Give feedback.
-
My senior colleagues taught me the following.
|
Beta Was this translation helpful? Give feedback.
-
I succeeded by combining jsbundling-rails & cssbundling-rails, not "rails new myapp -css tailwind". https://github.com/A1-frkweiichi/tailwindcss-test2/commits/main/ |
Beta Was this translation helpful? Give feedback.
-
Hello, thank you from the bottom of my heart for developing the gem.
TailwindCSS/daisyUI is reflected in my local environment, but when I try to deploy to Heroku, I get the error "Precompiling assets failed. / Error: Cannot find module 'daisyui'".
I did Adding a buildpack and deployed successfully.
However, I am wondering if there are simpler best practices.
If you, the community, know of any simpler best practices, could you please let me know?
The main commands and codes are as follows.
All of the source code can be found here. (This is a version of the code that still produces errors when deployed.)
https://github.com/A1-frkweiichi/tailwindcss-test/commits/main/
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions