Closed sanowar-drivex closed 3 months ago
i got another error also
[Error: InternalError Metro has encountered an error: While trying to resolve module react-native-mmkv
from file /home/lap099/Desktop/drivex-mobile-frontend/src/App.jsx
, the package /home/lap099/Desktop/drivex-mobile-frontend/node_modules/react-native-mmkv/package.json
was successfully found. However, this package itself specifies a main
module field that could not be resolved (/home/lap099/Desktop/drivex-mobile-frontend/node_modules/react-native-mmkv/lib/module/index
. Indeed, none of these files exist:
/home/lap099/Desktop/drivex-mobile-frontend/node_modules/react-native-mmkv/lib/module/index/index(.native|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx): /home/lap099/Desktop/drivex-mobile-frontend/node_modules/metro/src/node-haste/DependencyGraph.js (277:17)
275 | 276 | if (error instanceof InvalidPackageError) {
277 | throw new PackageResolutionError({ | ^ 278 | packageError: error, 279 | originModulePath: from, 280 | targetModuleName: to,]
It is in the package though.
Maybe it's an issue with your setup. Can you post the contents of the lib
folder in node_modules here?
im getting error while creatingstorage import { MMKV } from 'react-native-mmkv'; export const storage = new MMKV()
None of these files exist:
None of these files exist: