I got this error after upgrading react native 0.74
can you please tell me how can I resolve it
Error: While trying to resolve module react-native-restart from file C:\Project_Repo\App_Frontend\IndigoLearn\App.js, the package C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\react-native-restart\package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\react-native-restart\src\index.tsx. Indeed, none of these files exist:
C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\react-native-restart\src\index.tsx\index(.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 (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\metro\src\node-haste\DependencyGraph.js:243:17)
at C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\metro\src\lib\transformHelpers.js:156:21
at resolveDependencies (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\metro\src\DeltaBundler\buildSubgraph.js:42:25)
at visit (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\metro\src\DeltaBundler\buildSubgraph.js:83:30)
at async Promise.all (index 2)
at async visit (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\metro\src\DeltaBundler\buildSubgraph.js:92:5)
at async Promise.all (index 0)
at async buildSubgraph (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\metro\src\DeltaBundler\buildSubgraph.js:103:3)
at async Graph._buildDelta (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\metro\src\DeltaBundler\Graph.js:157:22)
at async Graph.initialTraverseDependencies (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\metro\src\DeltaBundler\Graph.js:140:19)
I got this error after upgrading react native 0.74 can you please tell me how can I resolve it
Error: While trying to resolve module
react-native-restart
from fileC:\Project_Repo\App_Frontend\IndigoLearn\App.js
, the packageC:\Project_Repo\App_Frontend\IndigoLearn\node_modules\react-native-restart\package.json
was successfully found. However, this package itself specifies amain
module field that could not be resolved (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\react-native-restart\src\index.tsx
. Indeed, none of these files exist: