Skip to content
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

[BUG] - Link component doesn't work #3031

Closed
dongchunxu opened this issue May 20, 2024 · 4 comments
Closed

[BUG] - Link component doesn't work #3031

dongchunxu opened this issue May 20, 2024 · 4 comments

Comments

@dongchunxu
Copy link

NextUI Version

latest

Describe the bug

`import { Link } from "@nextui-org/link";

Login` An error occurred when I clicked、 The error detail: Uncaught TypeError: Cannot read properties of undefined (reading 'startsWith') at addPathPrefix (add-path-prefix.js:13:15) at addBasePath (add-base-path.js:15:114) at eval (app-router.js:158:58) at eval (app-router.js:282:21) at startTransition (react.development.js:2597:25) at push (app-router.js:280:44) at eval (openLink.mjs:41:85) at $ea8dcbcb9ea1b556$var$getSyntheticLink (openLink.mjs:100:46) at Object.open (openLink.mjs:40:17) at onClick (index.mjs:51:18) at HTMLUnknownElement.callCallback (react-dom.development.js:20565:14) at Object.invokeGuardedCallbackImpl (react-dom.development.js:20614:16) at invokeGuardedCallback (react-dom.development.js:20689:29) at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:20703:25) at executeDispatch (react-dom.development.js:32128:3) at processDispatchQueueItemsInOrder (react-dom.development.js:32160:7) at processDispatchQueue (react-dom.development.js:32173:5) at dispatchEventsForPlugins (react-dom.development.js:32184:3) at eval (react-dom.development.js:32374:12) at batchedUpdates$1 (react-dom.development.js:24953:12) at batchedUpdates (react-dom.development.js:28844:12) at dispatchEventForPluginEventSystem (react-dom.development.js:32373:3) at dispatchEvent (react-dom.development.js:30141:5) at dispatchDiscreteEvent (react-dom.development.js:30112:5)

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

1.import { Link } from "@nextui-org/link";
2. Login

Expected behavior

I hope to jump correctly

Screenshots or Videos

No response

Operating System Version

macos

Browser

Chrome

Copy link

linear bot commented May 20, 2024

@wingkwong
Copy link
Member

duplicate - #2934

the fix will be available in next release.

@wingkwong wingkwong closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
@tensorboy
Copy link

duplicate - #2934

the fix will be available in next release.

when the next release will happen?

@wingkwong
Copy link
Member

@tensorboy Sorry for the late. There is a few large PRs still being reviewed. We'll release it after that. It should happen in the coming days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants