Aşağıdaki gibi korkunç bir hata listesi geldi.

Oysa yaptığım hata fazladan süslü parantez kullanmakmış 🙂

Oluşturmuş olduğum bileşeni import ederken kullandığım fazladan süslü parantez:

import {Toolbar} from ‘./app/components/Toolbar/Toolbar’

yerien

import Toolbar from ‘./app/components/Toolbar/Toolbar’

olmalıymış.

Bileşen içinde birden fazla sınıf olursa o zaman süslü parantez ile içeri alabiliriz.

Invariant Violation: 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 `App`.

This error is located at:
    in RCTView (at View.js:44)
    in App (at renderApplication.js:34)
    in RCTView (at View.js:44)
    in RCTView (at View.js:44)
    in AppContainer (at renderApplication.js:33)
createFiberFromElement
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:5691:10
createChild
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:9141:12
reconcileChildrenArray
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:9484:10
reconcileChildFibers
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:9939:8
reconcileChildren
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:10422:6
updateHostComponent
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:10936:4
beginWork
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:11615:8
performUnitOfWork
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:14357:21
workLoop
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:14395:41
renderRoot
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:14492:15
performWorkOnRoot
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:15450:17
performWork
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:15347:24
performSyncWork
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:15304:14
requestWork
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:15182:19
scheduleWork
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:14977:16
scheduleRootUpdate
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:15686:15
updateContainerAtExpirationTime
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:15719:28
updateContainer
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:15751:4
render
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:16399:20
renderApplication
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\ReactNative\renderApplication.js:59:34
run
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\ReactNative\AppRegistry.js:101:10
runApplication
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\ReactNative\AppRegistry.js:195:26
__callFunction
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:349:47
<unknown>
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:106:26
__guard
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:297:10
callFunctionReturnFlushedQueue
    C:\Users\cevah\itemlister\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:105:17

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir