Replies: 7 comments 5 replies
-
This is a problem with React Native and the bug should be reported to facebook or whatever package they try to use to resolve npm/node packages. |
Beta Was this translation helpful? Give feedback.
-
Work-around?if in need, reverted back to node-fetch |
Beta Was this translation helpful? Give feedback.
-
reverting back to 2.6.1 worked for me, I had a similar error where 'node:buffer could not be found' |
Beta Was this translation helpful? Give feedback.
-
React Native have This package is for Node.js and won't work in other environments since it uses builtin packages in Node.js to issue http/https requests... |
Beta Was this translation helpful? Give feedback.
-
I get what you're saying, |
Beta Was this translation helpful? Give feedback.
-
@kabundege what happens if you just remove |
Beta Was this translation helpful? Give feedback.
-
Yeah this is an issue with the latest node-fetch (3.3.1) as of time of this comment. I am back on 2.6.1 and the error goes away. I got this issue when trying to use it in a Nuxt 2 app. |
Beta Was this translation helpful? Give feedback.
-
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 getUnable to resolve module node:http
in my the consolecmd
,and also this suggestion below.
If you are sure the module exists, try these steps:
Reproduction
Steps to reproduce the behavior:
Expected behavior
Screenshots
Your Environment
Additional context
Beta Was this translation helpful? Give feedback.
All reactions