themesberg / themesberg/flowbite

Rails 7: Error: Cannot find module 'flowbite/plugin'

Open
#687 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
9.4k
Forks
862
PR merge metrics
No merged PRs in 30d

Description

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 title

I 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):

  • OS: Intel MacOS 14.0

Additional context
Add any other context about the problem here.

https://github.com/rails/tailwindcss-rails/discussions/269

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Rails 7.0.4 setup, the documented Flowbite installation instructions, and the tailwindcss-rails versions involved. Compare the “flowbite/plugin” module-resolution error with the newer error in discussion #269. Done means identifying the compatible setup or documenting the required resolution for booting the Rails app with Flowbite.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, tailwindcss
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.