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
Cannot convert undefined or null to object PropTypes.shape() #461
Comments
I'm not sure what you mean. |
@ljharb React doesn't require it: See jsx-eslint/eslint-plugin-react#1471 |
@1Jesper1 if they're passing the argument value into That linked issue is about the linter crashing on it, which is unrelated. Can you provide the full stack trace, and the code for your |
Using:
crashes on |
and if you don’t include the shim, you’re saying it doesn’t crash? (note that you should also be using the es6-shim as well) |
It doesn't crash when I don' include |
That's very bizarre. Can you provide the entire stack trace? |
I think the problem is in Storybook Shape.js class: |
Sorry, made the wrong assumption, still errors when not including the shim. The problem lies in Storybook. This thread can be closed. |
es5-shim/es5-shim.js
Line 1145 in 8b0c47f
Proptype PropTypes.shape() gives error "Cannot convert undefined or null to object"
The text was updated successfully, but these errors were encountered: