Description?
I'm working on a ReactNative app, and I was trying to make an HTTP request on an API. The implementation in use works fine (I've been using it for a while now).
But with this new version 3.2.0
, when i import the file, I immediately get
Unable to resolve module node:http
in my the console cmd
,
and also this suggestion below.
If you are sure the module exists, try these steps:
- Clear watchman watches: watchman watch-del-all
- Delete node_modules and run yarn install
- Reset Metro's cache: yarn start --reset-cache
- Remove the cache: rm -rf /tmp/metro-*
Reproduction Steps to reproduce the behavior:
- yarn add node-fetch
- run the code above ( image )
Expected behavior
Screenshots
Your Environment
software | version |
---|---|
node-fetch | 3.2.0 |
node | 16.13.1 |
npm | 8.1.2 |
Operating System | Mac OS X (macOS) |
Additional context