Error: While trying to resolve module @react-native/metro-config
from file E:mvscommercemvsshopmetro.config.js
, the package E:mvscommercemvsshopnode_modules@react-nativemetro-configpackage.json
was successfully found. However, this package itself specifies a main
module field that could not be resolved (E:mvscommercemvsshopnode_modules@react-nativemetro-configindex
. Indeed, none of these files exist:
- E:mvscommercemvsshopnode_modules@react-nativemetro-configindex(.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)
- E:mvscommercemvsshopnode_modules@react-nativemetro-configindexindex(.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)
at DependencyGraph.resolveDependency (E:mvscommercemvsshopnode_modulesmetrosrcnode-hasteDependencyGraph.js:243:17)
at E:mvscommercemvsshopnode_modulesmetrosrclibtransformHelpers.js:156:21
at resolveDependencies (E:mvscommercemvsshopnode_modulesmetrosrcDeltaBundlerbuildSubgraph.js:42:25)
at visit (E:mvscommercemvsshopnode_modulesmetrosrcDeltaBundlerbuildSubgraph.js:83:30)
at async Promise.all (index 8)
at async visit (E:mvscommercemvsshopnode_modulesmetrosrcDeltaBundlerbuildSubgraph.js:92:5)
at async Promise.all (index 19)
at async visit (E:mvscommercemvsshopnode_modulesmetrosrcDeltaBundlerbuildSubgraph.js:92:5)
at async Promise.all (index 2)
at async visit (E:mvscommercemvsshopnode_modulesmetrosrcDeltaBundlerbuildSubgraph.
npm i metro-config –save-dev
MVS IT Giants is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.