[Skeleton]: Can't read property 'gray' of undefined.
See original GitHub issueDescriptions
- Importing Skeleton component cause problem that throw error “
Can't read property 'gray' of undefined.
” - Using AspectRatioBox, children
width
andheight
style properties value treated asfull
.
Codesanbox
Notes I use the latest version of @storybook/react.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to fix "TypeError: Cannot read properties of undefined ...
Whenever I start the project it gives me the error, "TypeError: Cannot read properties of undefined (reading 'useSystemColorMode')".
Read more >Animating a Skeleton Loader using Reanimated 2 | egghead.io
Now our loader is static, so it doesn't move at all. Most skeleton loaders have some kind of animation to make the user...
Read more >Handy form validation in React Native with react-hook-form ...
First read through the end and check if your form management ... TypeError: Cannot read property 'split' of undefined happens when you ...
Read more >Part 4: Query for Data with GraphQL - Gatsby
Start by setting up the skeleton for your new blog page component. Create a new file: src/pages/blog.js . Define and export a new...
Read more >Menu - Chakra UI
Without a ref , the MenuList will render in an undefined position. ... When the menu is displayed, aria-expanded is set to true...
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
@clngkusnd Looks like it was fixed in the most recent version: https://codesandbox.io/s/chakra-ui-with-storybook-mn7t0?file=/src/stories/Issues.stories.js
Install
1.0.0-rc.0
please!Hey,
Looks like you’ve got a couple of problems. I forked your sandbox and I think fixed them all: https://codesandbox.io/s/chakra-ui-with-storybook-r31id
chakra-ui
ThemeProvider
which means it’s unable to look up “theme values” from context. On my sandbox I added adecorator
via the.storybook/preview.js
file as per the Storybook docsAspectRatioBox
requires aratio
andmaxWidth
prop to limit the size https://chakra-ui.com/aspectratiobox#embed-imageThe
Icon
is not exported as a “story” via a functionSkeleton
isn’t exported as a “stroy” and is missing theheight
prop