升级到nativescript 2.2.1后,运行应用程序时出现此错误:
exports: [...]
我试图删除./node_modules和./platform文件夹,以确保一切都很新鲜,但这没有帮助。
以下是我的依赖(来自package.json):
java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException:
Error calling module function
TypeError: global.moduleMerge is not a function
File: "<unknown>, line: 1, column: 265
StackTrace:
Frame: function:'', file:'/data/data/org.nativescript.hw1/files/app/tns_modules/utils/utils.js', line: 3, column: 8
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'/data/data/org.nativescript.hw1/files/app/tns_modules/file-system/file-system-access.js', line: 2, column: 13
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'/data/data/org.nativescript.hw1/files/app/tns_modules/file-system/file-system.js', line: 1, column: 86
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'/data/data/org.nativescript.hw1/files/app/tns_modules/nativescript-angular/file-system/ns-file-system.js', line: 2, column: 21
Frame: function:'require', file:'', line: 1, column: 26
答案 0 :(得分:0)
遵循Alexander Vakrilov的建议issue 393
并确保main.ts中的第一个导入是import {nativeScriptBootstrap} from "nativescript-angular/application";
来解决问题。