I am creating an app using React Native Expo and AWS Amplify. The project is working previously but a while ago I have encountered this Error.
Failed building JavaScript bundle. Unable to resolve module ../../../../src/graphql/error/GraphQLError from \node_modules@aws-amplify\api-graphql\lib-esm\GraphQLAPI.js:
None of these files exist:
- src\graphql\error\GraphQLError(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
- src\graphql\error\GraphQLError\index(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
> 1 | var __assign = (this && this.__assign) || function () {
2 | __assign = Object.assign || function(t) {
3 | for (var s, i = 1, n = arguments.length; i < n; i++) {
4 | s = arguments[i];
Tried deleting Node Modules and reinstall but somehow the error still exist. Tried to install graphql as dependency and the error still exist.