-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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] - Cannot read properties of undefined (reading 'startsWith') #2934
Comments
Same here |
me too. i'm change import Link from "@nextui-org/link" to Link from "next/link". |
Could not reproduce. Please provide a link to stackblitz to investigate. Related issue: #2930 |
same for me |
The fix will be available in the next release (20th May). At the same time, you can use our canary version as a workaround if necessary. "@nextui-org/system": "0.0.0-canary-20240504162810" update import { NextUIProvider } from "@nextui-org/system"; |
Will this fix be released soon? No release on May 20th |
@zhiqingchen I'm writing the release note now. Previously we were fully occupied by other internal stuff. Will release soon. Sorry for any inconvenience caused. |
Is it already fixed in 2.4.1 ? |
@Jihefel yes. please remove node_modules and reinstall. If error still occurs, please share a stackblitz / codesandbox project to us. |
I followed your instructions but the error still occurs. I think my problem is quite simple. It is not directly linked to the component "Link" (which is actually fixed) but rather to the href prop on a "ListboxItem" component |
This is still happening for me too, the proposed solutions don't work. I tried to reproduce on a stackblitz but to no avail |
This appears to be fixed for links, but not for linked tabs. My use-case is a little different to the documented example so I will see if I can create a repro when I get time. This may not be for a while however, so if anyone else has this issue please feel free to do it instead. |
for those who still encounter the issue, please create a new issue with a minimal reproducible example. I need to look into it one by one. |
Hi @wingkwong I was finally able to reproduce the issue, here it is: https://codesandbox.io/p/devbox/zen-moore-knpyrs If you visit this page: https://knpyrs-3000.csb.app/dashboard/tabs you will be able to reproduce the issue by clicking on any of the tabs. (EDIT: added a new issue as requested here: #3197) |
I had the same issue, but updating @nextui-org/system, @nextui-org/react and @nextui-org/link to the latest version and import the NextUIProvider from the @nextui-org/system package resolved the issue. |
Updating @nextui-org/link to latest version worked for me |
NextUI Version
@nextui-org/link 2.0.29, next.js 14.2.1
Describe the bug
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
When I try to click "Sign Up" I get this error.
This is my providers.tsx:
Expected behavior
To redirect
Screenshots or Videos
No response
Operating System Version
Windows
Browser
Chrome
The text was updated successfully, but these errors were encountered: