-
Notifications
You must be signed in to change notification settings - Fork 766
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
Rails 7: Error: Cannot find module 'flowbite/plugin' #687
Comments
|
If you are using importmap, the default way of handling JavaScript on Rails 7, don't forget to:
|
@antonioeloi this is assuming that the project is using importmap... But for esbuild? |
@spaquet just beneath what I pasted as reference you can find the following: ESBuildIf you use ESBuild to Bundle your JavaScript on Rails, you will need to import a version of Flowbite which supports the turbo:load event listeners instead of load. To do this add the line below to your application.js file:
|
Describe the bug
I was running Rails 7.0.4 and an outdated version of
tailwindcss-rails
, followed the instructions from the documentation and got the error described in the titleI decided to update the version of
tailwindcss-rails
to try and resolve it that way, at which point I got a new error which you can find described here..(I eventually uodated everything so am now on Rails 7.0.8)
It seems there is an issue resolving the plugin and I am not sure what to do to try and resolve it. Any suggestions would be appreciated.
Expected behavior
The plugin would load and I would be able to boot my rails 7 app and use flowbite.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
rails/tailwindcss-rails#269
The text was updated successfully, but these errors were encountered: