fakiolinho / react-loading

React component for loading animations

Home Page:https://codesandbox.io/s/mqx0ql55qp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Cannot read property 'string' of undefined

Sunil-tc opened this issue · comments

I'm getting below error.
I'm using,
"react": "^16.2.0",
"react-loading": "^1.0.3",

TypeError: Cannot read property 'string' of undefined
(anonymous function)
node_modules/react-loading/dist/react-loading.js:138

exports['default'] = Loading;

Loading.propTypes = {
color: _react.PropTypes.string,
delay: _react.PropTypes.number,
height: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]),
type: _react.PropTypes.string,

@Sunil-tc i cannot replicate the issue please have a look here

Now that width and height props are set explicitly to be numbers i think this issue is not valid anymore @Sunil-tc