Skip to content

新建项目报错 #79

@fandych

Description

@fandych
npx react-native init WemallApp && alita init WemallApp --typescript

初始化完成后, 运行android, app打开时报错

AppContainer@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:67605:22
[Thu Jul 09 2020 16:50:55.257]  ERROR    TypeError: undefined is not an object (evaluating '_this.view._component.measureInWindow')
[Thu Jul 09 2020 16:50:55.258]  ERROR    TypeError: undefined is not an object (evaluating '_this.view._component.measureInWindow')

This error is located at:
    in SafeView (at withOrientation.js:54)
    in withOrientation (at Header.js:433)
    in RCTView (at View.js:34)
    in View (at createAnimatedComponent.js:165)
    in AnimatedComponent (at createAnimatedComponent.js:215)
    in ForwardRef(AnimatedComponentWrapper) (at Header.js:430)
    in Header (at withOrientation.js:30)
    in withOrientation (at StackViewLayout.js:129)
    in RCTView (at View.js:34)
    in View (at StackViewLayout.js:476)
    in RCTView (at View.js:34)
    in View (at createAnimatedComponent.js:165)
    in AnimatedComponent (at createAnimatedComponent.js:215)
    in ForwardRef(AnimatedComponentWrapper) (at screens.native.js:71)
    in Screen (at StackViewCard.js:42)
    in Card (at createPointerEventsContainer.js:26)
    in Container (at StackViewLayout.js:507)
    in RCTView (at View.js:34)
    in View (at screens.native.js:101)
    in ScreenContainer (at StackViewLayout.js:401)
    in RCTView (at View.js:34)
    in View (at StackViewLayout.js:400)
    in StackViewLayout (at withOrientation.js:30)
    in withOrientation (at StackView.js:49)
    in RCTView (at View.js:34)
    in View (at Transitioner.js:141)
    in Transitioner (at StackView.js:19)
    in StackView (at createNavigator.js:57)
    in Navigator (at createKeyboardAwareNavigator.js:11)
    in KeyboardAwareNavigator (at createNavigationContainer.js:376)
    in NavigationContainer (at Router.js:151)
    in Router (at src/index.tsx:23)
    in App (at renderApplication.js:45)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:106)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:132)
    in AppContainer (at renderApplication.js:39)
[Thu Jul 09 2020 16:50:55.259]  ERROR    TypeError: undefined is not an object (evaluating '_this.view._component.measureInWindow')

This error is located at:
    in NavigationContainer (at Router.js:151)
    in Router (at src/index.tsx:23)
    in App (at renderApplication.js:45)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:106)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:132)
    in AppContainer (at renderApplication.js:39)
[Thu Jul 09 2020 16:50:55.260]  ERROR    TypeError: undefined is not an object (evaluating '_this.view._component.measureInWindow')

This error is located at:
    in NavigationContainer (at Router.js:151)
    in Router (at src/index.tsx:23)
    in App (at renderApplication.js:45)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:106)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:132)
    in AppContainer (at renderApplication.js:39)

Metadata

Metadata

Assignees

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