kyeo76 / redux-nprogress

🔨 WIP: Redux Middleware, Reducer, Component & Actions for the most popular progress bar
27 stars 6 forks source link

Getting this error in development "Accessing PropTypes via the main React package is deprecated" #8

Closed avishekjana closed 7 years ago

avishekjana commented 7 years ago

I'm getting this error in React 15.5.0 and above. It seems that propTypes is used in a component, which is deprecated as per the latest React release.

// In lib/NProgressComponent.js Line no. 85
NProgressComponent.propTypes = {
  nprogress: _react.PropTypes.object
};

How to solve this problem?

eudaimos commented 7 years ago

This was fixed in #4 but @jaredt67 it doesn't appear that the built version being published to npm has the fix (per above and what I have locally = same as above when updating to 1.0.0) + I'm still getting the warning

You'll probably have to push a v1.0.1 patch for npm

kyeo76 commented 7 years ago

published new version

avishekjana commented 7 years ago

@jaredt67 Great! It's working now.

eudaimos commented 7 years ago

thanks @jaredt67