前端集合 - 关注前端技术和互联网免费资源

关注前端技术和互联网免费资源

分类儿

页面儿

搜索儿

前端集合 RSS订阅
Home » 经验记录 » React native iOS app No script URL provided 报错的解决方案

React native iOS app No script URL provided 报错的解决方案

发布者:前端集合 // 发布时间:2025-04-25 08:15:00 // 分类:经验记录 // 访问: 25 次 // 热度:

React native iOS app安装成功,但是到最后一步打开 app 是提示如下错误:

410836762-81cc9b37-5158-4f66-afaa-b89ed1104faa.png

No script URL provided. Make sure the packager is running or you have embedded a JS bundle in your application bundle.
unsanitizedScriptURLString = (null)

解决方案

如果是 mac os,在终端 vi /etc/hosts,添加如下行:

127.0.0.1 localhost

windows 系统操作步骤类似。

即可解决问题。

Tags: react native, No script URL provided, rn app, React native app, React native ios, React native ios app

<< Taro react native 报错 stylelint-taro-rn 找不到文件 stylelint\lib\utils\declarationValueIndex.cjs 的解决方案
Top