最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论