与Nativescript应用程序崩溃“遇到不确定的供应商!”模块装上IOS之前,但适用于Android

问题描述 投票:0回答:2

我使用nativescript 5.1.1与Android版本5.1.0和iOS版本5.1.1。 JavaScript的堆栈跟踪:当应用程序启动iOS上它立即出现以下错误崩溃:

1个_reportError @文件:///app/tns_modules/@angular/compiler/bundles/compiler.umd.js:19223:31 2 @file:///app/tns_modules/@angular/compiler/bundles/compiler.umd。 JS:19072:43 3的forEach @ [本地代码] 4 _getProvidersMetadata @文件:///app/tns_modules/@angular/compiler/bundles/compiler.umd.js:19057:30个5 getNgModuleMetadata @文件:///应用程序/ tns_modules/@angular/compiler/bundles/compiler.umd.js:18776:84个6 _loadModules @文件:///app/tns_modules/@angular/compiler/bundles/compiler.umd.js:26060:74个7 _compileModuleAndComponents @文件:///app/tns_modules/@angular/compiler/bundles/compiler.umd.js:26041:52 8 compileModuleAsync @文件:///app/tns_modules/@angular/compiler/bundles/compiler.umd.js:26001 :68 9 bootstrapModule @文件:///app/tns_modules/@angular/core/bundles/core.umd.js:17836:42 10 _bootstrapper @文件:///应用程序/ tns_modules / nativescript棱角/平台常见的。 JS:87:50 11 @file:///app/tns_modules/nativescript-angular/platform-common.js:150:32 12通知@文件:///应用程序/ tns_modules / TNS-芯模块/数据/可观察的/ O <...>

JavaScript错误:文件:///app/tns_modules/@angular/compiler/bundles/compiler.umd.js:19223:31:JS错误错误:遇到不确定的提供商!通常,这意味着你有一个循环依赖。这可以通过使用“桶” index.ts文件引起。

此外,当在看从设备我看到这个控制台。 [19-02-08 11:56:23.932(CLI)(节点:39256)UnhandledPromiseRejectionWarning:类型错误:在WebSocketServer.server.on无法读取的未定义的属性 '管'(在/ usr /本地/ LIB / node_modules / nativescript / LIB /设备的套接字/ IOS /应用程序调试插座代理-factory.js:124:32)在WebSocketServer.emit(events.js:182:13)在handleUpgrade(在/ usr /本地/ LIB / node_modules / nativescript /node_modules/ws/lib/websocket-server.js:79:18)在WebSocketServer.completeUpgrade(/usr/local/lib/node_modules/nativescript/node_modules/ws/lib/websocket-server.js:293:5)在options.verifyClient(/usr/local/lib/node_modules/nativescript/node_modules/ws/lib/websocket-server.js:210:16)

这似乎并不为我的模块中,因为它在Android的正常运行。

我主要是寻找在调试问题有所帮助。我没有任何办法来调试被推到仿真器或手机动态密码。

nativescript
2个回答
0
投票

什么是以下软件包的版本:nativescript棱角,nativescript-DEV-的WebPack和角?

你刚才提到你更新nativescript但也许你应该更新上面提到的包为好。


0
投票

我想到了。还有就是AndroidApplication类的没有一个平台检查的进口。抛出的错误只是不是很大。如果别人遇到这或许会有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.