I get the Failed building JavaScript bundle error. Here is the full error:
While trying to resolve module
lottie-react-native
from fileC:\Users\zacha\addhoc\app\screens\UploadScreen.js
, the packageC:\Users\zacha\addhoc\node_modules\lottie-react-native\package.json
was successfully found. However, this package itself specifies amain
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)