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.

React warning about propTypes

See original GitHub issue

Hi there, I’ve noticed that the latest version(3.0.1) published to npm is still using React.PropTypes even though the source code has been updated.

I believe it’s because the code is not build properly before publishing?

Here you can check from the code compiled on npm is still referring to React.

https://unpkg.com/react-radio-group@3.0.1

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var Radio = _react2['default'].createClass({
  displayName: 'Radio',

  contextTypes: {
    radioGroup: _react2['default'].PropTypes.object
  },

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
fraserxucommented, May 22, 2017

@nkbt @chenglou Any plan on release it?

2reactions
chengloucommented, Jun 3, 2017

Hello! Sorry for the delay. v3.0.2 has been released. Ping me if other issues pop up. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Don't Call PropTypes Warning - React
In this case, ThirdPartyPropTypes.deprecated is a wrapper calling PropTypes.bool . This pattern by itself is fine, but triggers a false positive because React...
Read more >
How to validate React props using PropTypes - LogRocket Blog
Learn how to validate props with React PropTypes, React's internal mechanism for adding type checking to component props.
Read more >
PropType not giving warning - Stack Overflow
I have two props: text , and num . I am trying to use PropTypes to give a warning if they are not...
Read more >
How to forget about type errors in your React props with ...
Notice the prop types being defined before the export of the component, that is very important because if you export before defining the...
Read more >
Disable PropType warnings in Jest and React - Code Is Bae
This post shows how to disable proptype warning messages that might be in your test. Why would you want to do this? Different...
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