Angular RC6 升级后,我无法运行应用程序(构建良好)。罪魁祸首似乎是 nativescript-telerik-ui 库。引发以下错误:
java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException:
Error calling module function
SyntaxError: Unexpected token export
File: "<unknown>, line: 1, column: 265
StackTrace:
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'/data/data/appname/files/app/tns_modules/nativescript-telerik-ui/sidedrawer/angular/side-drawer-directives.js', line: 5, column: 12
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'/data/data/appname/files/app/mainModule.js', line: 10, column: 17
Frame: function:'require', file:'', line: 1, column: 266
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4802)
...
Error calling module function
第一个错误是这一行:
var di_1 = require('@angular/core/src/di');
第二个是:
var angular_1 = require('nativescript-telerik-ui/sidedrawer/angular');
它在 RC5 上运行良好。
nativescript-telerik-ui 版本 0.3.1
tns 版本 2.2.1