我试图构建到一个iOS设备,构建到模拟器工作得很好。我得到的是:
不明错误错误: TypeError:查找时不支持的文件类型(/Users/NAME/git/vex/vex-app react/VexAppReact/node_modules/image-size/lib/index.js:35:9) ) 在/Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/image-size/lib/index.js:93:22 在/Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/image-size/lib/index.js:50:9 在/Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/graceful-fs/graceful-fs.js:43:10 在FSReqWrap.oncomplete (fs.js:82:15) 见日志/var/folders/h8/42h3w_qd2r9fvpwy99jsnjq40000gn/T/react-packager.log 在SocketClient._handleMessage (SocketClient.js:144:23) 在BunserBuf。(SocketClient.js:53:42) 在emitOne (events.js:90:13) 在BunserBuf.emit (events.js:182:7) 在(/Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/bser/index.js:289:10) BunserBuf.process at /Users/NAME/git/vex/vex-app react/VexAppReact/node_modules/bser/index.js:244:12 在nextTickCallbackWith0Args (node.js:452:9) 在process._tickCallback (node.js:381:13) 命令/bin/sh失败,退出代码1
我假设图像资产有问题。我自己并没有安装image-size节点模块,所以我怀疑这个模块有什么问题,尽管如此。
欢迎任何建议。
发布于 2016-04-25 14:49:50
解决方案:显然不能将png文件添加到本机ios构建中
https://stackoverflow.com/questions/36842006
复制相似问题