Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'number' of undefined #2

Closed
ttcg opened this issue Mar 21, 2018 · 1 comment
Closed

TypeError: Cannot read property 'number' of undefined #2

ttcg opened this issue Mar 21, 2018 · 1 comment

Comments

@ttcg
Copy link

ttcg commented Mar 21, 2018

I am getting this error while trying to use your library.

TypeError: Cannot read property 'number' of undefined
./node_modules/react-nbsp/lib/ReactNbsp.js

 24 | };
  25 | 
  26 | Space.propTypes = {
> 27 |     count: _react.PropTypes.number
  28 | };
  29 | 
  30 | exports['default'] = Space;

And this is my package.json:

{
  "name": "react-redux-todo",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "prop-types": "^15.6.1",
    "react": "^16.2.0",
    "react-dom": "^16.2.0",
    "react-nbsp": "^1.1.1",
    "react-redux": "^5.0.7",
    "react-scripts": "1.1.1",
    "redux": "^3.7.2"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }
}

I'm using PropTypes in my components and it's all fine. But when I import your library, I keep getting the above error.

Could you please help me to point out what I'm doing wrong? Thanks.

@kubarium
Copy link
Owner

You're doing everything alright. When I fixed #1 I thought I published the package correctly. I did not. Version 1.2.1 should fix both #1 and this issue. Please upgrade.

@ttcg ttcg closed this as completed Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants