I ran npm install and then started the app by running npx react-native run-android.I ran into the same kind of error :-
error:
Error: Unable to resolve module ./checkPermissions.js from E:\Open Source\joplin\packages\app-mobile\utils\shareHandler.ts:
None of these files exist:
* utils\checkPermissions.js(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
* utils\checkPermissions.js\index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
3 |
4 | import Note from '@joplin/lib/models/Note';
> 5 | import checkPermissions from './checkPermissions.js';
| ^
6 | const { ToastAndroid } = require('react-native');
7 | const { PermissionsAndroid } = require('react-native');
8 | const { Platform } = require('react-native');
at ModuleResolver.resolveDependency (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:107:15)
at DependencyGraph.resolveDependency (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\node-haste\DependencyGraph.js:288:43)
at Object.resolve (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\lib\transformHelpers.js:129:24)
at resolve (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:396:33)
at E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:412:26
at Array.reduce (<anonymous>)
at resolveDependencies (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:411:33)
at processModule (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:140:31)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
and after correcting import checkPermissions from './checkPermissions.js'; to import checkPermissions from './checkPermissions'; i am getting another error
Error: Unable to resolve module ./locale.js from E:\Open Source\joplin\packages\lib\SyncTargetNone.ts:
None of these files exist:
* ..\lib\locale.js(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
* ..\lib\locale.js\index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
> 1 | import { _ } from './locale.js';
| ^
2 | import BaseSyncTarget from './BaseSyncTarget';
3 | import { FileApi } from './file-api';
4 |
at ModuleResolver.resolveDependency (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:107:15)
at DependencyGraph.resolveDependency (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\node-haste\DependencyGraph.js:288:43)
at Object.resolve (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\lib\transformHelpers.js:129:24)
at resolve (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:396:33)
at E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:412:26
at Array.reduce (<anonymous>)
at resolveDependencies (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:411:33)
at processModule (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:140:31)
at async addDependency (E:\Open Source\joplin\packages\app-mobile\node_modules\metro\src\DeltaBundler\traverseDependencies.js:230:18)
at async Promise.all (index 6)
``` I searched and found that its related to typescript imports . I am not able to reslove it .Need help..