Error (React Native Advanced, Networking):main module could not be resolved. None of these files exist

I get the Failed building JavaScript bundle error. Here is the full error:

While trying to resolve module lottie-react-native from file C:\Users\zacha\addhoc\app\screens\UploadScreen.js, the package C:\Users\zacha\addhoc\node_modules\lottie-react-native\package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (C:\Users\zacha\addhoc\node_modules\lottie-react-native\lib\index.js. Indeed, none of these files exist:

  • C:\Users\zacha\addhoc\node_modules\lottie-react-native\lib\index.js(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
  • C:\Users\zacha\addhoc\node_modules\lottie-react-native\lib\index.js\index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)