storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.65k stars 9.32k forks source link

[Bug]: Cannot read properties of undefined (reading 'content') error in docs of storybook #25187

Closed i-suman closed 10 months ago

i-suman commented 11 months ago

Describe the bug

All the Docs sections of storybooks is throwing either Cannot read properties of undefined (reading 'content') or Cannot read properties of undefined (reading 'font')

Earlier it was working fine, but just after below mentioned commits, the storybook docs started to break -

Screen shot of the error attached

Screenshot 2023-12-12 at 3 31 36 PM

To Reproduce

Reproduction issue can be found here - https://nearform.github.io/quantum/?path=/docs/components-buttongroup--docs

Reproduction repo is mentioned below - https://github.com/nearform/quantum

To reproduce the issue locally -

System

System:
    OS: macOS 14.1.2
    CPU: (11) arm64 Apple M3 Pro
    Shell: 3.2.57 - /bin/sh
  Binaries:
    Node: 20.10.0 - /usr/local/bin/node
    npm: 10.2.3 - /usr/local/bin/npm <----- active
  Browsers:
    Chrome: 120.0.6099.71
    Safari: 17.1.2
  npmPackages:
    @storybook/addon-essentials: ^7.5.3 => 7.6.4 
    @storybook/addon-interactions: ^7.5.3 => 7.6.4 
    @storybook/addon-links: ^7.5.2 => 7.6.4 
    @storybook/addon-onboarding: ^1.0.8 => 1.0.10 
    @storybook/blocks: ^7.5.2 => 7.6.4 
    @storybook/react: ^7.5.2 => 7.6.4 
    @storybook/react-vite: ^7.5.2 => 7.6.4 
    @storybook/testing-library: ^0.2.2 => 0.2.2 
    eslint-plugin-storybook: ^0.6.15 => 0.6.15 
    storybook: ^7.5.2 => 7.6.4 
    storybook-dark-mode: ^3.0.1 => 3.0.3

Additional context

No response

shilman commented 10 months ago

It's working fine for me when I run your repro steps. I assume you figured it out? Closing for now but lmk if you're still having problems.