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.

Not working with react v16

See original GitHub issue

I am trying to update my project to react v16 but I am getting an JS error at

https://github.com/yangshun/react-storybook-addon-chapters/blob/master/src/components/PropTable.jsx#L105

PropTable.propTypes = {
  type: React.PropTypes.func,
};

React.PropTypes is undefined, sound line https://facebook.github.io/react/docs/typechecking-with-proptypes.html

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ducarrozcommented, Oct 25, 2017

@brandonellis thanks. Can somebody with the proper permission push the latest version to the npm registry?

1reaction
brandonelliscommented, Oct 17, 2017

I have a PR open for most of the updated dependencies needed for this to work correctly. I also refactored the code a little. Waiting for maintainer status.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React v16.0 – React Blog
By default, if an error is thrown inside a component's render or lifecycle methods, the whole component tree is unmounted from the root....
Read more >
React v16.13.0 – React Blog
Today we are releasing React 16.13.0. It contains bugfixes and new deprecation warnings to help prepare for a future major release.
Read more >
React v16.8: The One With Hooks
Note that to enable Hooks, all React packages need to be 16.8.0 or higher. Hooks won't work if you forget to update, for...
Read more >
React v16.7: No, This Is Not the One With Hooks
7: No, This Is Not the One With Hooks. December 19, 2018 by Andrew Clark. Our latest release includes an important performance bugfix...
Read more >
React v16.9.0 and the Roadmap Update
Today we are releasing React 16.9. It contains several new features, bugfixes, and new deprecation warnings to help prepare for a future ...
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