Skip to content

Can't find variable:Symbol #18932

Description

@bingfeng1225

Environment

Environment:
OS: macOS High Sierra 10.13.4
Node: 9.11.0
Yarn: 1.5.1
npm: 5.8.0
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.3 => 0.55.3

Steps to Reproduce

1、Create a new RN project with WebStorm
2、Define a Symbol in App.js
3、Select the Android platform to run
4、Code:
type Props = {}; const Test = Symbol('test'); export default class App extends Component<Props> { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </Text> <Text style={styles.instructions}> To get started, edit App.js </Text> <Text style={styles.instructions}> {instructions} </Text> </View> ); } }

Actual Behavior

1、The following problems arise
screenshot_20180419-091248_hiasst

2、When selecting the "Debug JS Remotely" menu, the code works normally.

3、The code works well on the iOS platform。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions