You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Error: While trying to resolve module swr from file /project/src/core/api/common/ApiConfig.tsx, the package /project/node_modules/swr/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/project/node_modules/swr/dist/index.mjs. Indeed, none of these files exist:
/project/node_modules/swr/dist/index.mjs/index(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
at DependencyGraph.resolveDependency (/project/node_modules/metro/src/node-haste/DependencyGraph.js:311:17)
at Object.resolve (/project/node_modules/metro/src/lib/transformHelpers.js:129:24)
at resolve (/project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
at /project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
at Array.reduce ()
at resolveDependencies (/project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
at processModule (/project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
at async addDependency (/project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
at async Promise.all (index 0)
at async processModule (/project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:198:5)
The text was updated successfully, but these errors were encountered:
error: Error: While trying to resolve module
swr
from file/project/src/core/api/common/ApiConfig.tsx
, the package/project/node_modules/swr/package.json
was successfully found. However, this package itself specifies amain
module field that could not be resolved (/project/node_modules/swr/dist/index.mjs
. Indeed, none of these files exist:at DependencyGraph.resolveDependency (/project/node_modules/metro/src/node-haste/DependencyGraph.js:311:17)
at Object.resolve (/project/node_modules/metro/src/lib/transformHelpers.js:129:24)
at resolve (/project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
at /project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
at Array.reduce ()
at resolveDependencies (/project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
at processModule (/project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
at async addDependency (/project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
at async Promise.all (index 0)
at async processModule (/project/node_modules/metro/src/DeltaBundler/traverseDependencies.js:198:5)
The text was updated successfully, but these errors were encountered: