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

Unexpected linter output #25

Closed
nikmash opened this issue Jul 15, 2015 · 7 comments
Closed

Unexpected linter output #25

nikmash opened this issue Jul 15, 2015 · 7 comments

Comments

@nikmash
Copy link

nikmash commented Jul 15, 2015

I try to run semistandard and I hit this error:

semistandard: Unexpected linter output:

TypeError: Cannot read property 'type' of undefined
    at markPropTypesAsDeclared (/usr/local/lib/node_modules/semistandard/node_modules/eslint-plugin-react/lib/rules/prop-types.js:449:27)
    at /usr/local/lib/node_modules/semistandard/node_modules/eslint-plugin-react/lib/rules/prop-types.js:571:9
    at Array.forEach (native)
    at EventEmitter.ObjectExpression (/usr/local/lib/node_modules/semistandard/node_modules/eslint-plugin-react/lib/rules/prop-types.js:567:23)
    at EventEmitter.emit (events.js:129:20)
    at Controller.controller.traverse.enter (/usr/local/lib/node_modules/semistandard/node_modules/standard-engine/node_modules/eslint/lib/eslint.js:724:25)
    at Controller.__execute (/usr/local/lib/node_modules/semistandard/node_modules/standard-engine/node_modules/eslint/node_modules/estraverse/estraverse.js:397:31)
    at Controller.traverse (/usr/local/lib/node_modules/semistandard/node_modules/standard-engine/node_modules/eslint/node_modules/estraverse/estraverse.js:495:28)
    at EventEmitter.module.exports.api.verify (/usr/local/lib/node_modules/semistandard/node_modules/standard-engine/node_modules/eslint/lib/eslint.js:717:24)
    at processText (/usr/local/lib/node_modules/semistandard/node_modules/standard-engine/node_modules/eslint/lib/cli-engine.js:201:27)

It's odd because it works fine on another machine of mine. Any insight on what exactly is going on here?

@Flet
Copy link
Member

Flet commented Jul 29, 2015

Unsure on this, sorry. Were you able to get past this? Have you tried reinstalling the latest version?

@JGAntunes
Copy link

Same here.

semistandard --verbose | snazzy

semistandard: Unexpected linter output:

TypeError: Cannot read property 'type' of undefined
    at markPropTypesAsDeclared (/home/jgantunes/Documents/github/flux-app/node_modules/semistandard/node_modules/eslint-plugin-react/lib/rules/prop-types.js:450:27)
    at /home/jgantunes/Documents/github/flux-app/node_modules/semistandard/node_modules/eslint-plugin-react/lib/rules/prop-types.js:572:9
    at Array.forEach (native)
    at EventEmitter.ObjectExpression (/home/jgantunes/Documents/github/flux-app/node_modules/semistandard/node_modules/eslint-plugin-react/lib/rules/prop-types.js:568:23)
    at EventEmitter.emit (events.js:129:20)
    at Controller.controller.traverse.enter (/home/jgantunes/Documents/github/flux-app/node_modules/semistandard/node_modules/eslint/lib/eslint.js:824:25)
    at Controller.__execute (/home/jgantunes/Documents/github/flux-app/node_modules/semistandard/node_modules/eslint/node_modules/estraverse/estraverse.js:397:31)
    at Controller.traverse (/home/jgantunes/Documents/github/flux-app/node_modules/semistandard/node_modules/eslint/node_modules/estraverse/estraverse.js:495:28)
    at EventEmitter.module.exports.api.verify (/home/jgantunes/Documents/github/flux-app/node_modules/semistandard/node_modules/eslint/lib/eslint.js:817:24)
    at processText (/home/jgantunes/Documents/github/flux-app/node_modules/semistandard/node_modules/eslint/lib/cli-engine.js:199:27)
 ~/D/g/flux-app  cat node_modules/semistandard/package.json | grep version
  "version": "7.0.2",

@nikmash
Copy link
Author

nikmash commented Aug 25, 2015

@Flet still hitting the error. Ended up just using eslint.

@Flet
Copy link
Member

Flet commented Aug 25, 2015

:(

Does standard blow up too?

@Flet
Copy link
Member

Flet commented Aug 25, 2015

Also, are you using the react plugin with eslint? May be worth trying to use it to see... Looks like the stack trace is pointing to it... eslint-plugin-react/lib/rules/prop-types.js:450:27

@dcousens
Copy link
Member

@nikmash if you could try and isolate the code that would be helpful.
Its likely this is a problem with 1 particular rule in eslint dying on the code you provided.

@Flet
Copy link
Member

Flet commented May 16, 2016

Closing this issue -- if you're still having issues after updating to the lastest version, feel free to open a new issue!

@Flet Flet closed this as completed May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants