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

JSXtransformer error for lowercase classes does not provide linenumber property. #2592

Closed
lolchocotaco opened this issue Nov 24, 2014 · 2 comments · Fixed by #2765
Closed

Comments

@lolchocotaco
Copy link

When attempting to use a react class with a lowercase ClassName, the transformer is not able to display line on which the error occurred. It turns out that the event variable passed to the to function createSourceCodeErrorMessage(code, e) does not contain an attribute called lineNumber.

An error is thrown that states:
Uncaught TypeError: Cannot read property 'replace' of undefined

The actual error has only the properties stack and message.
Error: Lower case component names (myClass) are no longer supported in JSX: See http://fb.me/react-jsx-lower-cas at http://localhost:8080/app.js:undefined:undefined

@lolchocotaco lolchocotaco changed the title JSXTransormer error does not provide linenumber. JSXtransformer error for lowercase classes does not provide linenumber property. Nov 24, 2014
@zpao
Copy link
Member

zpao commented Nov 26, 2014

What environment/browser are you in?

@lolchocotaco
Copy link
Author

I am running Yosemite and in Chrome. Also using the jsxtransformer and
react provided by the CDN.

On Tuesday, November 25, 2014, Paul O’Shannessy [email protected]
wrote:

What environment/browser are you in?


Reply to this email directly or view it on GitHub
#2592 (comment).

Sameer Chauhan
Cooper Union EE' 14
[email protected]

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

Successfully merging a pull request may close this issue.

2 participants