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 'length' of undefined #345

Closed
justin808 opened this issue Dec 2, 2015 · 2 comments
Closed

TypeError: Cannot read property 'length' of undefined #345

justin808 opened this issue Dec 2, 2015 · 2 comments

Comments

@justin808
Copy link

Reproduces here: shakacode/react-webpack-rails-tutorial#163

Here's the stack dump:

> eslint --ext .js,.jsx . "." "--ext" ".jsx,.js"

/Users/justin/shakacode/react-webpack-rails-tutorial/client/node_modules/eslint-plugin-react/lib/rules/prop-types.js:403
        for (var i = 0, j = node.id.properties.length; i < j; i++) {
                                              ^

TypeError: Cannot read property 'length' of undefined
    at markPropTypesAsUsed (/Users/justin/shakacode/react-webpack-rails-tutorial/client/node_modules/eslint-plugin-react/lib/rules/prop-types.js:403:47)
    at EventEmitter.VariableDeclarator (/Users/justin/shakacode/react-webpack-rails-tutorial/client/node_modules/eslint-plugin-react/lib/rules/prop-types.js:577:7)
    at emitOne (events.js:82:20)
    at EventEmitter.emit (events.js:169:7)
    at NodeEventGenerator.enterNode (/Users/justin/shakacode/react-webpack-rails-tutorial/client/node_modules/eslint/lib/util/node-event-generator.js:42:22)
    at CommentEventGenerator.enterNode (/Users/justin/shakacode/react-webpack-rails-tutorial/client/node_modules/eslint/lib/util/comment-event-generator.js:98:23)
    at Controller.controller.traverse.enter (/Users/justin/shakacode/react-webpack-rails-tutorial/client/node_modules/eslint/lib/eslint.js:767:36)
    at Controller.__execute (/Users/justin/shakacode/react-webpack-rails-tutorial/client/node_modules/estraverse/estraverse.js:397:31)
    at Controller.traverse (/Users/justin/shakacode/react-webpack-rails-tutorial/client/node_modules/estraverse/estraverse.js:495:28)
    at EventEmitter.module.exports.api.verify (/Users/justin/shakacode/react-webpack-rails-tutorial/client/node_modules/eslint/lib/eslint.js:764:24)
@justin808
Copy link
Author

@ianobermiller
Copy link

Just noticed this in Radium as well: bccf86b#commitcomment-14780463

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants