Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TypeError: Cannot read property 'shape' of undefined #61

Open
sundayhd opened this issue Sep 30, 2017 · 6 comments
Open

TypeError: Cannot read property 'shape' of undefined #61

sundayhd opened this issue Sep 30, 2017 · 6 comments

Comments

@sundayhd
Copy link

Getting error when trying to see my app:

TypeError: Cannot read property 'shape' of undefined
./node_modules/react-css-themr/lib/utils/themr-shape.js
C:/Projects/reacttoolboxstarter/node_modules/react-css-themr/lib/utils/themr-shape.js:7
4 |
5 | var _react = require('react');
6 |

7 | exports.default = _react.PropTypes.shape({
8 | theme: _react.PropTypes.object.isRequired
9 | });
10 |

using react-toolbox-themr and react-toolbox 2.0.6 beta
read everything from readme... any help?

@aaahrens
Copy link

aaahrens commented Oct 4, 2017

Bump. Getting the same error using the default create react app and the Get Started page.

@rokugou
Copy link

rokugou commented Oct 6, 2017

react 16.0.0 changed the behaviour.
downgrade to 15.6.2 is work for me.

@aat-antoine
Copy link

aat-antoine commented Oct 12, 2017

I confirm dowgrading to 15.6.2 works fine except theme is not applied in my case

@aaahrens
Copy link

aaahrens commented Oct 12, 2017

The install copypasta is out of date. It says to install version beta.6, but when installing separately yarn installs version beta.12. Which makes sense considering recent the react changes are. Beta.12 works perfectly with React 16.

@aat-antoine you also import the css at the top level. I forgot that when i was starting it, might be the case.

@aat-antoine
Copy link

aat-antoine commented Oct 12, 2017

@drunkengranite same omission o_O. Thx, you are a life saver :)

@jervtub
Copy link

jervtub commented Oct 28, 2017

The version beta.12 indeed fixes this issue, however when I add specifically

"react-toolbox": "2.0.0-beta.12"

the old typing is still used. Is the updated version add to npm?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants