ios – React native metro bundler fails with error at loading assets JSON


I have an old react native project. I am trying to set it up however the code fails when I run the project using react-native run-ios. My node version is 14.21.0

Here is the error

Error: @build-script-error-begin
Error loading assets JSON from Metro. Ensure you've followed all expo-updates installation steps correctly. Unable to resolve module ./timeSessions from /Users/xx/Desktop/xxxx/src/store/index.js: 

None of these files exist:
  * src/store/timeSessions(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.svg|.native.svg|.svg)
  * src/store/timeSessions/index(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.svg|.native.svg|.svg)
  20 | import schedules from './schedule';
  21 | import quotes from './quotes';
> 22 | import timeSessions from './timeSessions';
     |                           ^
  23 | import insights from './insights';
  24 | import crews from './crew';
  25 |
@build-script-error-end

    at /Users/xxx/Desktop/xxxxxx/node_modules/expo-updates/scripts/createManifest.js:39:11
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
Command PhaseScriptExecution failed with a nonzero exit code

Please guide me what is this issue and how to resolve it

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img