Skip to content

Fatal error when JSX layout is incorrect. #17206

@gentlee

Description

@gentlee

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

No.

Environment

Environment:
OS: macOS High Sierra 10.13.1
Node: 8.1.0
Yarn: Not Found
npm: 5.5.1
Watchman: 4.7.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 2.2 AI-145.3537739

Packages: (wanted => installed)
react: 16.0.0-beta.5 => 16.0.0-beta.5
react-native: ^0.49.5 => 0.49.5

Target Platform: iOS (11.2)

Steps to Reproduce

Add this render method to any component:

render() {
        return <View>{...getInputProps(this, 'frequency')}/></View>
}

where getInputProps is some function.

Expected Behavior

I got error with clear message and stacktrace.

Actual Behavior

Got error: Syntax error Unexpected token (130:17)
RCTFatal

Stacktrace is not from my app.
Copy button (cmd+alt+c) in red screen doesn't work, same as combination.
Chrome debugger is empty.

Reproducible Demo

Easy to reproduce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions