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: Unable to resolve module http from ./node_modules/http-graceful-shutdown/lib/index.js: http could not be found within the project or in these directories:
node_modules
If you are sure the module exists, try these steps:
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules and run yarn install
3. Reset Metro's cache: yarn start --reset-cache
4. Remove the cache: rm -rf /tmp/metro-*
6 | // | _|
7 | // -----------------------------------------------------------------------------
> 8 | // gracefully shuts downs http server
| ^
9 | // can be used with http, express, koa, ...
10 | // (c) 2022 Sebastian Hildebrandt
11 | // License: MIT
at ModuleResolver.resolveDependency (/Users//developer/rn_app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:129:15)
at DependencyGraph.resolveDependency (/Users//developer/rn_app/node_modules/metro/src/node-haste/DependencyGraph.js:288:43)
at Object.resolve (/Users//developer/rn_app/node_modules/metro/src/lib/transformHelpers.js:129:24)
at resolve (/Users//developer/rn_app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
at /Users//developer/rn_app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
at Array.reduce (<anonymous>)
at resolveDependencies (/Users//developer/rn_app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
at processModule (/Users//developer/rn_app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async addDependency (/Users//developer/rn_app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
Tell us which operating system you are using, as well as which versions of Node.js and npm/yarn. If applicable, include the browser and the corresponding version.
Run the following to get it quickly:
Node.js v16.14.0
darwin 21.5.0
yarn 1.22.18
"react": "17.0.2",
"react-native": "0.67.4",
The text was updated successfully, but these errors were encountered:
Description
Is it possible to make this great package support react-native runtime?
I've tried to integrate pollyjs with React Native runtime with below setups, but it failed.
Error Message & Stack Trace
Dependencies
Copy the @pollyjs dependencies from
package.json
:Environment
Tell us which operating system you are using, as well as which versions of Node.js and npm/yarn. If applicable, include the browser and the corresponding version.
Run the following to get it quickly:
The text was updated successfully, but these errors were encountered: