流动本地流动服务器 - 错误:解析资产清单时出错 [英] Meteor local server on mobile - Error: Error parsing asset manifest
问题描述
我已经添加了一个平台:Android
当我在Heroku上部署Meteor应用程序时我尝试使用 meteor build
命令构建应用程序 meteor build --directory〜/ builds --server https://my-app.herokuapp .com
,并使用 adb
安装apk,我收到一个错误消息。
尝试在本地运行应用程序时遇到同样的错误,但使用了不同的服务器: meteor run android-device --mobile-server https://my-app.herokuapp.com
错误是:
错误:解析资产清单(...)
(匿名函数)@ webapp.js?hash = 2552b0d8c8f134d5763b6897c1be6c9bfa3e9c28:68
(匿名函数)@ webapp_local_server.js:37
cordova.callbackFromNative @ cordova.js:293
processMessage @ cordova.js:1081
processMessages @ cordova.js:1104
pollOnce @ cordova.js:973
pollOnceFromOnlineEvent @ cordova.js:960
它看上去就像问题连接到运行在移动设备上的Meteor本地服务器。
感谢Meteor Forum用户,发现问题。
修复并创建了一个包的拉取请求: https://github.com/AdmitHub/meteor-buildpack-horse/pull/86
I have deployed a Meteor app on Heroku.
I have added a platform: Android
When I try I build the app using the meteor build
command meteor build --directory ~/builds --server https://my-app.herokuapp.com
and the install the apk using adb
, I get an error.
I get the same error when trying to run app locally, but with different server: meteor run android-device --mobile-server https://my-app.herokuapp.com
The error is:
Error: Error parsing asset manifest(…)
(anonymous function) @ webapp.js?hash=2552b0d8c8f134d5763b6897c1be6c9bfa3e9c28:68
(anonymous function) @ webapp_local_server.js:37
cordova.callbackFromNative @ cordova.js:293
processMessage @ cordova.js:1081
processMessages @ cordova.js:1104
pollOnce @ cordova.js:973
pollOnceFromOnlineEvent @ cordova.js:960
It looks like the problem is connected to Meteor local server which runs on mobile.
Some discussion here: https://forums.meteor.com/t/meteor-local-server-on-mobile-error-error-parsing-asset-manifest/21215/7
Thanks to Meteor Forum user, issue was found.
Fixed and created a pull request for the package: https://github.com/AdmitHub/meteor-buildpack-horse/pull/86
这篇关于流动本地流动服务器 - 错误:解析资产清单时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!