question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hrefTo throws an error when kind is not supplied

See original GitHub issue

Describe the bug Can’t use hrefTo without supplying both kind and story

To Reproduce Steps to reproduce the behavior:

  1. Go to https://next--storybooks-official.netlify.com/?path=/story/addons-links-link--first
  2. See error in console: Uncaught (in promise) TypeError: Cannot read property 'toLowerCase' of undefined
  3. Link’s href points to root instead of the linked story

Probably broken by https://github.com/storybooks/storybook/commit/a9d356444c75124ee0f1ff6a85a5604ee0b82ff6. Before the change, the missing kind and story parameters were handled by api.getUrlState

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
skhitercommented, Jun 27, 2019

Hi everyone, I have the same problem as @Hypnosphi, I installed create-react-native-app with storybook (v5.1.9).

DevDependencies: -“@storybook/addon-actions”: “^5.1.9”, -“@storybook/addon-links”: “^5.1.9”, -“@storybook/addons”: “^5.1.9”, -“@storybook/react-native”: “^5.1.9”, -“@storybook/react-native-server”: “^5.1.9”,

Dependencies: -“react”: “16.8.3”, -“react-native”: “0.59.9”

See error in console: Uncaught (in promise) TypeError: Cannot read property ‘toLowerCase’ of undefined

Would anyone have been able to fix the problem, please?

0reactions
stale[bot]commented, Aug 17, 2019

Hey there, it’s me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

Read more comments on GitHub >

github_iconTop Results From Across the Web

hrefTo throws an error when kind is not supplied #6824 - GitHub
Describe the bug. Can't use hrefTo without supplying both kind and story. To Reproduce Steps to reproduce the behavior:.
Read more >
How to make React storybook 'addon-links' work
If I use the LinkTo react component it works fine but linkTo function is throwing the above said error "could not navigate to...
Read more >
Contact Form 7 not working if user does not allow All Cookies
E.g. If a user hasn't clicked anything on the CookieBot part yet, and tries to send a CF7 (say a contact form), the...
Read more >
Build strongly typed polymorphic components with React and ...
And the error thrown: Type '”emmanuel”' is not assignable to type 'ElementType | undefined'.
Read more >
All other San Diego fixes - Product Documentation | ServiceNow
When running any CMDB query, the following error displays in the system logs: 'Failed to capture the event processor_query: no thrown error'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found