1
votes

None of these files exist:

  • screens\Components\Loader(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  • screens\Components\Loader\index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx) 15 | } from 'react-native'; 16 | import * as Realm from 'realm';

17 | import Loader from './Components/Loader'; | ^ 18 | 19 | 20 | const userSchema = { at ModuleResolver.resolveDependency (E:\gvosio-main\gvosavmobile\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:211:15) at DependencyGraph.resolveDependency (E:\gvosio-main\gvosavmobile\node_modules\metro\src\node-haste\DependencyGraph.js:413:43) at Object.resolve (E:\gvosio-main\gvosavmobile\node_modules\metro\src\lib\transformHelpers.js:317:42) at resolve (E:\gvosio-main\gvosavmobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:629:33) at E:\gvosio-main\gvosavmobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:645:26 at Array.reduce () at resolveDependencies (E:\gvosio-main\gvosavmobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:644:33) at E:\gvosio-main\gvosavmobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:329:33 at Generator.next () at asyncGeneratorStep (E:\gvosio-main\gvosavmobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:137:24)enter image description here

1
Can you please share the directory structure of your project ?Jignesh Mayani

1 Answers

0
votes

Unless your Components folder is located inside your screens folder, you would need to change import Loader from './screens/Components/Loader' to import Loader from '../screens/Components/Loader.

So two dots ../ instead of one ./ This will let you go one directory upwards first. Also, keep in mind that imports are case-sensitive, so I would double-check whether it's Components or components`.