Hello,
I've noticed there is an deprecated build file in the dist/index.js on npm.
I'm using react-element-query in a library i'm working on and i get an error:
Uncaught TypeError: Cannot read property 'node' of undefined
That points to `dist/index.js`:
(_react.Component), _class3.propTypes = {
children: _react.PropTypes.node.isRequired,
default: _react.PropTypes.string,
sizes: _react.PropTypes.arrayOf(_react.PropTypes.shape({
name: _react.PropTypes.string.isRequired,
// ...
After watching the file itself in my node_modules, indeed the code looks like its using the old proptypes from react library.
I cloned your project and did a build and it looks fine and using the new prop-type library:
Hello, I've noticed there is an deprecated build file in the
dist/index.js
onnpm
. I'm usingreact-element-query
in a library i'm working on and i get an error:After watching the file itself in my
node_modules
, indeed the code looks like its using the old proptypes from react library. I cloned your project and did a build and it looks fine and using the newprop-type
library:So i think the
npm
package isn't up-to-date with the current version of build.