nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] Navbar component not found in releases after tag 1.0.0-beta.12

Open stenwall opened this issue 3 years ago • 6 comments

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

  1. Set yarn version to 3.1.0
  2. Run yarn add @nextui-org/react
  3. Notice "@nextui-org/react": "^1.0.0-beta.12" in package.json
  4. Try to import the Navbar on a page or component
  5. 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:

Screenshot 2023-02-05 at 11 33 14

node_modules/@nexui-org folder with "@nextui-org/react": "1.0.0-beta.12" in package.json:

Screenshot 2023-02-05 at 11 31 49

Screenshot of error in vscode:

Screenshot 2023-02-05 at 11 33 35

Operating System Version

macOS

Browser

Chrome

stenwall avatar Feb 05 '23 11:02 stenwall

image I am facing the same problem :(

NoCtrlZ1110 avatar Feb 06 '23 16:02 NoCtrlZ1110

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 ^)

hmbrg avatar Feb 06 '23 17:02 hmbrg

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.

stenwall avatar Feb 07 '23 07:02 stenwall

It is just caused due to the versioning system used and is probably not compatible with the standard SemVer versioning system NPM uses.

sohamsen15 avatar May 03 '23 15:05 sohamsen15

Hey guys sorry for the delay please upgrade to V2

jrgarciadev avatar Aug 02 '23 14:08 jrgarciadev

@jrgarciadev please add Container , Row and Col etc. in 2.2.9V because its available in beta -v.

sgyanendra8400 avatar Dec 09 '23 15:12 sgyanendra8400