简体   繁体   中英

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.

But when I build the app for iOS, I get an error on a png:

Building optimized bundles and generating sourcemaps... Starting Metro Bundler src/assets/Registrered/ligne.png: Cannot read properties of undefined (reading 'length')

I'm quite speechless about this error and don't find anything online about it...

The problem was solved by upgrading expo

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM