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.

Unable to use PropsTable

See original GitHub issue

Bug Report

getValue this function in <PropsTable> causing error

Describe the bug Once include PropsTable component in my mdx file it throw error

To Reproduce

  1. Go to Button.mdx
  2. Include PropsTable as describe
  3. See error
Uncaught TypeError: Cannot read property 'replace' of undefined at getValue 

Expected behavior To see the <PropsTable> with correct props defined in ../lib/Button/index.js

Enviroment

{
  "engines": {
    "node": "8.11.1",
    "npm": "5.7.1",
    "yarn": "1.6.0"
  }
}

Additional context/Screenshots screen shot 2018-06-13 at 3 32 49 pm screen shot 2018-06-13 at 3 33 27 pm

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
pedronauckcommented, Jun 13, 2018

I didn’t try <PropsTable> using oneOfType in prop types, I will see what’s happening. Thanks guys ✌️

1reaction
renatoribcommented, Jun 14, 2018

Looks great @albinekb

Read more comments on GitHub >

github_iconTop Results From Across the Web

addon-docs: Props table can't find props when using ... - GitHub
Describe the bug When using addon-docs with Storybook, the props table says that it cannot find any props for a component that uses ......
Read more >
props table issue | SAP Community
hi, i am facing the same issue several users have described here: our server is on hybris 5.1.1.
Read more >
Storybook: Addon-Docs Cannot read property 'classes' of ...
I'm using Storybook 5.2.6 for React 16.9.0 with Typescript 3.5.3 and using Material UI themed components. Having added, and configured, ...
Read more >
react-docgen-props-table - npm
Beautiful Props Table for React Docgen. ... Start using react-docgen-props-table in your project by running `npm i react-docgen-props-table` ...
Read more >
TSIM installation with Oracle database ended with warnings ...
The TSIM installation with Oracle database ended with warnings due to ORA-00942 on sys.props$ table. The installation log shows below 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