-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 'toLowerCase' of undefined in jsx-no-target-blank #821
Comments
What version of node does codeship run? |
Same problem.
Version:
|
@kouhin as i commented in the other issue, your versions are incompatible - |
@chalisegrogan what versions of eslint everything is in your package.json? |
I'm getting this error with eslint@3.5.0 and eslint-config-airbnb@11.1.0. Yesterday it wasn't manifesting. EDIT: I'm not using codeship |
I can't help myself to create this repository https://github.com/kouhin/eslint-config-airbnb-deps
Currently I'm using Everything works well. 😉 |
@kouhin Thanks, this leads me on the right track. The error has been introduce with I suggest updating your |
Just ran into the same problem (TypeError: Cannot read property 'toLowerCase' of undefined) with 6.2.1. Switching to 6.2.0 works.
|
This is a simple component that triggers the error import React, { PropTypes } from 'react';
export default function Foo() {
const targetValue = '_blank';
return (
<a target={targetValue}>bar</a>
);
};
|
@ljharb Codeship is set up to run with: As for eslint, this was the package json at the time of running:
note: we're now specifically targeting |
@chalisegrogan can you rerun it with all the latest of eslint, eslint-plugin-react, and eslint-plugin-jsx-a11y? |
@ljharb set up as follows:
is still failing with the same error. |
@chalisegrogan and presumably if you lock eslint-plugin-react to 6.2.0, the error goes away? |
@ljharb correct. |
Working on a fix. |
Awesome, thank you @yannickcr ! |
+1 |
As of fa99e13#diff-05dfa6b555ee6724cba772b5d07e4d1c, installing eslint/eslint-plugin-react with
and running the following eslint command in Codeship...
is resulting in:
To be clear, this seems to be only happening on Codeship. We've temporarily solved this by commenting out the offending rule (
jsx-no-target-blank
). Is this something others are seeing or should I bring this up with Codeship instead?The text was updated successfully, but these errors were encountered: