react-toolbox icon indicating copy to clipboard operation
react-toolbox copied to clipboard

Latest version of react gives PropTypes warning

Open BrockWills opened this issue 9 years ago • 36 comments

With React 15.5, importing PropTypes from React is deprecated in favour of importing from the new 'prop-types' package.

See this link: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html

Thus, using react-toolbox with the latest version of react gives a deprecation warning in the console.

Will look into a PR for this.

BrockWills avatar Apr 10 '17 03:04 BrockWills

The same warnings:

  • in my local console: warning "[email protected]" has incorrect peer dependency "react@^0.14 || ~15.4.0". warning "[email protected]" has incorrect peer dependency "react-dom@^0.14.0 || ~15.4.0".
  • browser console: Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

vldmr1986 avatar Apr 10 '17 10:04 vldmr1986

+1

flexzero avatar Apr 11 '17 10:04 flexzero

#1413 Should hopefully solve this

BrockWills avatar Apr 12 '17 11:04 BrockWills

Utilizing the FlipMove package causes the PropTypes deprecated warning even after following the best practice illustrated here: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html

mytechnotalent avatar Apr 16 '17 23:04 mytechnotalent

Even after importing PropTypes from prop-types, I'm receiving the same Warning. "react-toolbox": "^2.0.0-beta.8" "prop-types": "15.5.8" "react": "^15.5.4"

2c434891b10ce64db58122a38b93bbbd4bbc1db44a1a767704 pimgpsh_fullsize_distr

sjain-mi9 avatar Apr 24 '17 14:04 sjain-mi9

Same here! Importing react-flip-move gives me the error, despite having the correct and updated proptypes import.

Lrigh1 avatar Apr 27 '17 22:04 Lrigh1

Also with me: captura de tela 2017-05-02 as 15 52 42

"dependencies": {
    "classnames": "^2.2.5",
    "firebase": "^3.7.5",
    "firebaseui": "^1.0.1",
    "immutability-helper": "^2.1.2",
    "lodash": "^4.17.4",
    "re-base": "^2.7.0",
    "react": "^15.5.4",
    "react-dom": "^15.5.4",
    "react-router-dom": "^4.1.1",
    "react-tag-input": "^4.7.1",
    "reactfire": "^1.0.0",
    "slugify": "^1.1.0"
  },

marceloaugustocwb avatar May 02 '17 18:05 marceloaugustocwb

+1

BrunoQuaresma avatar May 11 '17 15:05 BrunoQuaresma

+1

Kliton avatar May 12 '17 23:05 Kliton

Getting the same error here.

raunofreiberg avatar May 15 '17 12:05 raunofreiberg

Same here. Note that I'm not using PropTypes directly anywhere in my code though it seems to be called out many times by imported modules.

[email protected] [email protected]

Looks like it's mostly bootstrap 0.30 doing the dirty work?

bootstrap-proptypes

Omortis avatar May 16 '17 16:05 Omortis

Same issue, not using PropTypes from the react package anywhere in my code but its still throwing this warning.

EDIT: If anyone is still having my issue, make sure its not another package. A simple way is to pull up the dev tools and then look through the warning stacktrace by putting a breakpoint on the error and refreshing the page. Go up the callstack.

oshalygin avatar May 18 '17 05:05 oshalygin

+1

nivek91 avatar May 18 '17 14:05 nivek91

+1

I have removed all references to PropTypes and the warning message is still showing

JuliusPopoola avatar May 20 '17 12:05 JuliusPopoola

+1

steve-goodwin avatar May 22 '17 12:05 steve-goodwin

+1

devjaw avatar May 23 '17 07:05 devjaw

+1

SH-Stark avatar May 23 '17 09:05 SH-Stark

+1

BHouwens avatar May 23 '17 12:05 BHouwens

Seriously, please stop writing +1 comments. I'm sure the maintainers will fix this when they have the time and energy to do so. If you still feel like you have to +1, use the reaction feature provided by GitHub for that exact purpose.

Each time you write a new comment, a lot of people will get notifications about it (yes, I know that I'm doing the same here, sorry about that). And also, consider that the people maintaining this library is probably doing it on their free time, and that they might already be stressed/feel guilty about open issues and PRs (which they really shouldn't!).

tobiasandersen avatar May 23 '17 13:05 tobiasandersen

+1

tawanorg avatar May 29 '17 05:05 tawanorg