WELL NVM still expo error with no reason at all...

I asked a question about this but i fixxed it … if I restart the server however I still get this error… First time I fixxed it it worked by switching the appentry. Then it worked as expected but I had to close the server to install a package and when I wanted to restart the server it just yields this again…

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, object,  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 withExpoRoot.js:26., 
    in ExpoRoot (at renderApplication.js:40)
    in RCTView (at AppContainer.js:101)
    in RCTView (at AppContainer.js:119)
    in AppContainer (at renderApplication.js:39)

Stack trace:
  node_modules\react-native\Libraries\YellowBox\YellowBox.js:63:8 in console.error
  node_modules\expo\build\environment\muteWarnings.fx.js:27:24 in error
  node_modules\react\cjs\react.development.js:172:36 in warningWithoutStack
  node_modules\react\cjs\react.development.js:612:32 in warning
  node_modules\react\cjs\react.development.js:1944:14 in createElementWithValidation
  node_modules\expo\build\launch\withExpoRoot.js:25:20 in ExpoRoot
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:10696:27 in renderWithHooks
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:13481:6 in mountIndeterminateComponent
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:20459:25 in beginWork$$1
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:19370:24 in performUnitOfWork
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:19347:39 in workLoopSync
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:18997:22 in renderRoot
  [native code]:null in renderRoot
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:18709:28 in runRootCallback
  [native code]:null in runRootCallback
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:5642:32 in runWithPriority$argument_1
  node_modules\scheduler\cjs\scheduler.development.js:643:23 in unstable_runWithPriority
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:5638:22 in flushSyncCallbackQueueImpl
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:5627:28 in flushSyncCallbackQueue
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:18556:30 in scheduleUpdateOnFiber
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:21822:15 in scheduleRootUpdate
  node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:23042:20 in ReactNativeRenderer.render
  node_modules\react-native\Libraries\ReactNative\renderApplication.js:52:52 in renderApplication
  node_modules\react-native\Libraries\ReactNative\AppRegistry.js:116:10 in runnables.appKey.run
  node_modules\react-native\Libraries\ReactNative\AppRegistry.js:197:26 in runApplication
  node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:436:47 in __callFunction
  node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:111:26 in __guard$argument_0
  node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:384:10 in __guard
  node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:110:17 in __guard$argument_0
  [native code]:null in callFunctionReturnFlushedQueue

I need help ASAP because I cant work atm…

Sounds like a React issue rendering a variable and not expo issue. What’s the code look like?

I think in this case my error was that my AppEntry file changes automatically if I install new packages… so it kept on swapping it to app.js even though my app was living somewhere else.

I fixxed it by importing my homefile into app.js and just default exporting it there so if expo decides to change the app entry file back to App.js it would still work!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.