-
Type: Task
-
Resolution: Works as Designed
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
How frequently does the bug occur?
All the time
Description
I have the class RealmContext.js
import { Room } from "../database/RealmSchemas"; import { Realm, createRealmContext } from '@realm/react' const config = { schema: [Room], }; export default createRealmContext(config);
In App.js, i have defined:
import
{ RealmProvider }from './context/RealmContext';
<RealmProvider>
....
</RealmProvider>
Stacktrace & log output
ERROR Warning: React.createElement: 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 your code at App.js:236. in App (at renderApplication.js:50) in RCTView (at View.js:32) in View (at AppContainer.js:92) in RCTView (at View.js:32) in View (at AppContainer.js:119) in AppContainer (at renderApplication.js:43) in VedaxLink(RootComponent) (at renderApplication.js:60)
Can you reproduce the bug?
Not yet
Reproduction Steps
No response
Version
im using lasted cli
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
IOS
Build environment
Which debugger for React Native: ..
Check Value Recommendation/Notes
npm ping ok
npm -v not ok Use npm v8.11.0
node -v ok current: v17.9.0, recommended: v17.9.0
npm config get registry ok using default registry (https://registry.npmjs.org/)
which git ok /usr/bin/git
Perms check on cached files ok
Perms check on local node_modules ok
Perms check on global node_modules ok
Perms check on local bin folder ok
Perms check on global bin folder ok
Verify cache contents ok verified 11051 tarballs
Cocoapods version
1.1.13