Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up"'propTypes' is already defined" #561
Comments
dcousens
added
the
bug
label
Jul 11, 2016
This comment has been minimized.
This comment has been minimized.
|
Sounds like eslint? |
This comment has been minimized.
This comment has been minimized.
|
Seems like it wasn't |
agilgur5
closed this
Jul 12, 2016
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
agilgur5 commentedJul 8, 2016
•
edited
I happen to have a file with two classes in it:
and standard is throwing "'propTypes' is already defined" on the second declaration, even though they're only defined within the scope of the class, not globally, so this seems like a bug to me
Not 100% sure which dependency/rule may be causing this
Edit: seems like this occurs for any file with multiple classes in it that have
staticproperties with the same name (likepropTypes)