Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve module ./internal/operators/timeout from E:\eventual-mvp-app\node_modules\rxjs\dist\cjs\index.js: #1742

Open
Syed-Hasnain-Askari opened this issue Jan 29, 2024 · 0 comments

Comments

@Syed-Hasnain-Askari
Copy link

When I use this code in index.js fie in react native

import { Amplify } from 'aws-amplify';
import amplifyconfig from './src/amplifyconfiguration.json';
Amplify.configure(amplifyconfig);

I'm getting error like this

error: Error: Unable to resolve module ./internal/operators/timeout from E:\eventual-mvp-app\node_modules\rxjs\dist\cjs\index.js:

None of these files exist:

  • node_modules\rxjs\dist\cjs\internal\operators\timeout(.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)
  • node_modules\rxjs\dist\cjs\internal\operators\timeout\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)
    77 | var SequenceError_1 = require("./internal/util/SequenceError");
    78 | Object.defineProperty(exports, "SequenceError", { enumerable: true, get: function () { return SequenceError_1.SequenceError; } });

79 | var timeout_1 = require("./internal/operators/timeout");
| ^
80 | Object.defineProperty(exports, "TimeoutError", { enumerable: true, get: function () { return timeout_1.TimeoutError; } });
81 | var UnsubscriptionError_1 = require("./internal/util/UnsubscriptionError");
82 | Object.defineProperty(exports, "UnsubscriptionError", { enumerable: true, get: function () { return UnsubscriptionError_1.UnsubscriptionError; } });
at ModuleResolver.resolveDependency (E:\eventual-mvp-app\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:127:15)
at DependencyGraph.resolveDependency (E:\eventual-mvp-app\node_modules\metro\src\node-haste\DependencyGraph.js:271:43)
at E:\eventual-mvp-app\node_modules\metro\src\lib\transformHelpers.js:176:21
at resolveDependencies (E:\eventual-mvp-app\node_modules\metro\src\DeltaBundler\buildSubgraph.js:56:25)
at visit (E:\eventual-mvp-app\node_modules\metro\src\DeltaBundler\buildSubgraph.js:107:30)
at async Promise.all (index 1)
at async visit (E:\eventual-mvp-app\node_modules\metro\src\DeltaBundler\buildSubgraph.js:116:5)
at async Promise.all (index 0)
at async visit (E:\eventual-mvp-app\node_modules\metro\src\DeltaBundler\buildSubgraph.js:116:5)
at async Promise.all (index 13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant