Errors after downloading JavaScript bundle
litehacker opened this issue · 5 comments
litehacker commented
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s%s, undefined, You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check your code at Button.js:38.,
in Button (at Welcome.js:144)
in RCTView (at Block.js:155)
in Block (at Welcome.js:143)
in RCTView (at Block.js:155)
in Block (at Welcome.js:129)
in Welcome (at SceneView.js:9)
in SceneView (at StackViewLayout.tsx:899)
in RCTView (at StackViewLayout.tsx:898)
in RCTView (at StackViewLayout.tsx:897)
in RCTView (at createAnimatedComponent.js:151)
in AnimatedComponent (at StackViewCard.tsx:106)
in RCTView (at createAnimatedComponent.js:151)
in AnimatedComponent (at screens.native.js:71)
in Screen (at StackViewCard.tsx:93)
in Card (at createPointerEventsContainer.tsx:95)
in Container (at StackViewLayout.tsx:985)
in RCTView (at screens.native.js:101)
in ScreenContainer (at StackViewLayout.tsx:394)
in RCTView (at createAnimatedComponent.js:151)
in AnimatedComponent (at StackViewLayout.tsx:384)
in PanGestureHandler (at StackViewLayout.tsx:377)
in StackViewLayout (at withOrientation.js:30)
in withOrientation (at StackView.tsx:104)
in RCTView (at Transitioner.tsx:267)
in Transitioner (at StackView.tsx:41)
in StackView (at createNavigator.js:80)
in Navigator (at createKeyboardAwareNavigator.js:12)
in KeyboardAwareNavigator (at createAppContainer.js:430)
in NavigationContainer (at App.js:62)
in RCTView (at Block.js:155)
in Block (at App.js:61)
in App (at withExpoRoot.js:26)
in RootErrorBoundary (at withExpoRoot.js:25)
in ExpoRoot (at renderApplication.js:40)
in RCTView (at AppContainer.js:101)
in RCTView (at AppContainer.js:119)
in AppContainer (at renderApplication.js:39)
`
Also this one:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of `Button`.
hetmann commented
@litehacker hey, do you version of Expo and React-Native you'r using?
devbrunopaula commented
any word on this bug? I got the same bug
"expo": "^36.0.0",
"react": "16.9.0",
hetmann commented
@devbrunopaula I think this is because the current code base in based on an older expo version. I'll update the code base to the latest versions.
anilozdemir96 commented
It is due to the importing gradient in Button.js wrongly, it should be "import { LinearGradient } from 'expo-linear-gradient;'"
hetmann commented
@anilozdemir96 @litehacker @devbrunopaula all the apps have been updated to use Expo SDk 36. This should fix all the errors.