Skip to content

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

Closed
@lolchocotaco

Description

@lolchocotaco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions