hrefTo throws an error when kind is not supplied
See original GitHub issueDescribe the bug
Can’t use hrefTo
without supplying both kind and story
To Reproduce Steps to reproduce the behavior:
- Go to https://next--storybooks-official.netlify.com/?path=/story/addons-links-link--first
- See error in console:
Uncaught (in promise) TypeError: Cannot read property 'toLowerCase' of undefined
- 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:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
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!