Closed ganesshkumar closed 3 months ago
Run & review this pull request in StackBlitz Codeflow.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
flowbite-react | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 24, 2024 6:18pm |
This update revises the installation command for flowbite-react
within a RedwoodJS project. The modification ensures that the package is added specifically to the web
workspace by utilizing yarn workspace web add
instead of the general yarn add
command. This approach guarantees that dependencies are managed accurately within the project's structured environment.
File Path | Change Summary |
---|---|
.../docs/guides/redwood-js.mdx |
Updated the installation command for flowbite-react to the web workspace using yarn workspace . |
🐰✨
In the garden of code, where the Redwood trees grow,
A rabbit hopped by, with knowledge in tow.
"Useyarn workspace
, notadd
alone,"
It whispered softly, in a gentle tone.
Nowflowbite-react
finds its proper home.
🌟🌲
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Forgive my ignorance here @iamargentum... does it need to use the workspace command or is it just recommended?
not exactly sure why i am tagged here could you please elaborate @rluders ? will be happy to help :)
Forgive my ignorance here @iamargentum... does it need to use the workspace command or is it just recommended?
To give a bit of context, redwood uses yarn workspaces (monorepo setup) and the PR is actually correct because we need to install flowbite-react
in the frontend/web folder instead at the root level of the monorepo.
not exactly sure why i am tagged here
could you please elaborate @rluders ?
will be happy to help :)
@iamargentum tagging going wrong. Actually it was to tag @ganesshkumar
@SutuSebastian Thanks for adding the info.
Also running yarn add flowbite-react
throws the following error. Either we have to pass --ignore-workspace-root-check
or we need to add it only to the web
workspace - which is what we want.
> yarn add flowbite-react
yarn add v1.22.22
error Running this command will add the dependency to the workspace root rather than the workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Thanks, @SutuSebastian and @ganesshkumar for the clarification.
updating command to add flowbite-react to web workspace
Summarize the changes made and the motivation behind them.
Reference related issues using
#
followed by the issue number.If there are breaking API changes - like adding or removing props, or changing the structure of the theme - describe them, and provide steps to update existing code.
Summary by CodeRabbit
flowbite-react
in RedwoodJS projects to ensure correct workspace addition.