[英]Length of png file is undefined on expo build:ios
I am building my react native app for ios ( expo build:ios
) and I have no errors on the app on dev mode.我正在为 ios ( expo build:ios
)构建我的反应本机应用程序,并且我在开发模式下的应用程序上没有错误。
But when I build the app for iOS, I get an error on a png:但是当我为 iOS 构建应用程序时,我在 png 上收到错误:
Building optimized bundles and generating sourcemaps... Starting Metro Bundler src/assets/Registrered/ligne.png: Cannot read properties of undefined (reading 'length')构建优化的捆绑包并生成源映射...启动 Metro Bundler src/assets/Registrered/ligne.png:无法读取未定义的属性(读取“长度”)
I'm quite speechless about this error and don't find anything online about it...我对这个错误很无语,也没有在网上找到任何关于它的信息......
The problem was solved by upgrading expo通过升级 expo 解决了问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.