You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this code: <Menu.Item label={<FormattedMessage {...linksMessages.inspections} />} href="/inspections" />
The label works, but the console shows an error: warning.js?8a56:44 Warning: Invalid argument supplied to oneOf, expected an instance of array. warning @ warning.js?8a56:44 createEnumTypeChecker @ ReactPropTypes.js?3c83:214 (anonymous function) @ Label.js?9d70:181
Where Label.js:70:181 equals
/** Size of the label. */ size: _react.PropTypes.oneOf(Label._meta.props.sizes),
yep, the propType arg points to _meta.props.sizes instead of _meta.props.size. I fixed this here in the PR to support React 15.3.0 (#374) but hadn't made a release yet.
I have this code:
<Menu.Item label={<FormattedMessage {...linksMessages.inspections} />} href="/inspections" />
The label works, but the console shows an error:
warning.js?8a56:44 Warning: Invalid argument supplied to oneOf, expected an instance of array. warning @ warning.js?8a56:44 createEnumTypeChecker @ ReactPropTypes.js?3c83:214 (anonymous function) @ Label.js?9d70:181
Where Label.js:70:181 equals
/** Size of the label. */ size: _react.PropTypes.oneOf(Label._meta.props.sizes),
Label._meta = { ..., props: { ... size: sui.sizes, ....
var _semanticUtils = require('../../utils/semanticUtils');
var sui = _interopRequireWildcard(_semanticUtils);
Any clues as to why this doesn't resolve properly?
The text was updated successfully, but these errors were encountered: