[BUG] Navbar component not found in releases after tag 1.0.0-beta.12
Describe the bug
When I run yarn add @nextui-org/react my package.json is updated with:
"@nextui-org/react": "^1.0.0-beta.12"
and the Navbar component doesn't seem to be included. It's not in my node_modules, and if I look in your repo, the Navbar is not exported in any of the tags after 10.0.0-beta12. When I tried changing my package.json to:
"@nextui-org/react": "1.0.0-beta.12"
and then run yarn install again, I get the Navbar component. I tried repeating it in Stackblitz, but had no problem finding the Navbar there. I run yarn 3.1.0 and Stackblitz run yarn 1.22.19, perhaps that's the problem, but it sounds weird since the component is not there in your repo either. All other components seems to be working. I use Typescript.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
- Set yarn version to
3.1.0 - Run
yarn add @nextui-org/react - Notice
"@nextui-org/react": "^1.0.0-beta.12"inpackage.json - Try to import the Navbar on a page or component
- Notice the error: Module '"@nextui-org/react"' has no exported member 'Navbar'.
Expected behavior
Being able to import the Navbar component like I can with all other components without making any changes to package.json after having run yarn add @nextui-org/react.
Screenshots or Videos
node_modules/@nexui-org folder with "@nextui-org/react": "^1.0.0-beta.12" in package.json:
node_modules/@nexui-org folder with "@nextui-org/react": "1.0.0-beta.12" in package.json:
Screenshot of error in vscode:
Operating System Version
macOS
Browser
Chrome
I am facing the same problem :(
I think I know why this happens. The latest version of NextUI is "1.0.0-beta.12" but according to semantic versioning the latest version is "1.0.8-beta.5" which was published a few months ago. NPM thinks this is the more up-to-date version, because of the higher minor version of the package (1.0.8).
You can fix this by locking the version in your package.json: "@nextui-org/react": "1.0.0-beta.12" (notice the removed ^)
You can fix this by locking the version in your package.json: "@nextui-org/react": "1.0.0-beta.12" (notice the removed
^)
If you look at my issue above, you can see that I have "solved" it the same way. I still think it's a bug, I don't think that I should have to make changes to my package.json after install. It should be fixed so that the correct version is downloaded when I run yarn add @nextui-org/react.
It is just caused due to the versioning system used and is probably not compatible with the standard SemVer versioning system NPM uses.
Hey guys sorry for the delay please upgrade to V2
@jrgarciadev please add Container , Row and Col etc. in 2.2.9V because its available in beta -v.