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

Error: TypeError: Cannot read properties of undefined (reading 'startsWith') #135

Open
RolandB00 opened this issue Jun 13, 2024 · 2 comments

Comments

@RolandB00
Copy link

Hey there,

I've followed the file readme in the folder "web" and opened the website, but when I try to click on "take the free test now" , the following error message is popping up:
TypeError: Cannot read properties of undefined (reading 'startsWith')

The console says:

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 handler (useBaseRouter.js:54:24)
at eval (openLink.mjs:42:85)
at $ea8dcbcb9ea1b556$var$getSyntheticLink (openLink.mjs:101:46)
at Object.open (openLink.mjs:41: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)

Can you please help me fix the issue?

Kind regards,

Roland

@hrmate
Copy link

hrmate commented Aug 25, 2024

Hi!
I am experiencing the same issue.

@manishverma3
Copy link

manishverma3 commented Nov 8, 2024

update @nextui-org/link to latest version

  1. go to package.json and replace line 26 with "@nextui-org/link": "2.0.35"
  2. delete node_modules
  3. yarn or npm install
    thats it.

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