Upgrading to expo 52 causes an error message that node-fetch cannot import node:http because the React runtime doesn't i

I am trying to upgrade my expo project to version 52. After some issues with npm 10.9.0 not working I g

I am trying to upgrade my expo project to version 52. After some issues with npm 10.9.0 not working I got a fresh node-modules directory installed.

But trying to run the program in expo-go I get the message

The package at "node_modules/node-fetch/src/index.js" attempted to import the Node standard library module "node:http".It failed because the native React runtime does not include the Node standard library.

Weird because when I check what modules use that dependency there are many from the standard React native and Expo libraries.

I suspect that something is causing it to use the Node-fetch instead of react-fetch. But I haven't been able to figure it out

I have tried it in both the old architecture and the new architecture.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745640366a4637653.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信