运行tns预览--hmr时发生编译错误

时间:2019-05-19 19:53:35

标签: android nativescript angular7 nativescript-angular

我安装了本机脚本项目,并通过tns Preview --hmr构建了代码。工作正常。但是突然出现错误,显示要上传的文件超过了15MB的限制。您的应用程序可能无法运行。

我尝试再次安装npm。但是我遇到了同样的错误。

运行此代码时出现错误。

  

tns预览--hmr

Webpack build done!
Start sending initial files for platform android.
Successfully sent initial files for platform android.
The files to upload exceed the maximum allowed size of 15MB. Your app might not work as expected.
The files to upload exceed the maximum allowed size of 15MB. Your app might not work as expected.
The files to upload exceed the maximum allowed size of 15MB. Your app might not work as expected.
The files to upload exceed the maximum allowed size of 15MB. Your app might not work as expected.
The files to upload exceed the maximum allowed size of 15MB. Your app might not work as expected.
Error: PubNub call failed, check status for details
    at new PubNubError (/usr/local/lib/node_modules/nativescript/node_modules/pubnub/lib/core/components/core/components/endpoint.js:8:31)
    at onResponse (/usr/local/lib/node_modules/nativescript/node_modules/pubnub/lib/core/components/core/components/endpoint.js:126:32)
    at <anonymous> (/usr/local/lib/node_modules/nativescript/node_modules/pubnub/lib/networking/modules/networking/modules/web-node.js:59:17)
    at Request.callback (/usr/local/lib/node_modules/nativescript/node_modules/superagent/lib/node/index.js:728:3)
    at RequestBase._timeoutError (/usr/local/lib/node_modules/nativescript/node_modules/superagent/lib/request-base.js:676:8)
    at Timeout.<anonymous> (/usr/local/lib/node_modules/nativescript/node_modules/superagent/lib/request-base.js:685:12)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)

0 个答案:

没有答案