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

Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

Open ebhoren opened this issue 9 years ago • 5 comments

I have this warning when running react-svg from create-react-app boilterplate.

Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

Could you consider replacing this by below in src/index.js? import React, { Component, PropTypes } from 'react'

to

import React, { Component } from 'react' import PropTypes from 'prop-types'

Thanks in advance

ebhoren avatar May 05 '17 20:05 ebhoren

Resolved with #23, just waiting for a maintainer :+1:

ianlyons avatar May 15 '17 21:05 ianlyons

@tanem do you have an idea of when you might be able to review the two open pulls? i don't really wanna fork this, but i understand if you guys are too busy

ianlyons avatar May 19 '17 21:05 ianlyons

Much needed update indeed ! This warning is not cool to look at 😄

Bleeky avatar May 23 '17 15:05 Bleeky

Hey all, sorry for the delay, been tied up on other things. Just looking at that PR now.

tanem avatar May 24 '17 09:05 tanem

Just pushed 2.1.20, should be all good now 👍

tanem avatar May 24 '17 09:05 tanem