2016-08-19 6 views
0

Nachdem ich 2.2.1 bis nativescript aktualisiert bekomme ich diesen Fehler, wenn die Anwendung ausgeführt wird:Typeerror: global.moduleMerge ist keine Funktion

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 

habe ich versucht, beide ./node_modules und ./platform Ordner löschen um sicherzustellen, dass alles frisch ist, aber das hilft nicht.

Hier sind meine Abhängigkeiten (von der package.json):

"dependencies": { 
    "@angular/common": "2.0.0-rc.4", 
    "@angular/compiler": "2.0.0-rc.4", 
    "@angular/core": "2.0.0-rc.4", 
    "@angular/http": "2.0.0-rc.4", 
    "@angular/platform-browser": "2.0.0-rc.4", 
    "@angular/platform-browser-dynamic": "2.0.0-rc.4", 
    "@angular/platform-server": "2.0.0-rc.4", 
    "@angular/router": "3.0.0-beta.2", 
    "@angular/router-deprecated": "2.0.0-rc.2", 
    "nativescript-angular": "next", 
    "reflect-metadata": "^0.1.5", 
    "tns-core-modules": "2.2.1", 
    "email-validator": "^1.0.4", 
    "nativescript-social-share": "^1.2.0" 
    }, 
    "devDependencies": { 
    "babel-traverse": "6.13.0", 
    "babel-types": "6.13.0", 
    "babylon": "6.9.0", 
    "lazy": "1.0.11", 
    "nativescript-dev-typescript": "^0.3.2", 
    "typescript": "^1.8.10" 
    } 
+0

Löschen Sie auch den Ordner "lib", da er die nativen iOS-Bibliotheken enthält. –

+0

läuft gerade für Android im Moment. – TruckerG

+0

Vielleicht treffen Sie dieses Problem https://github.com/telerik/nativescript-ui-samples-angular/issues/3 –

Antwort

0

Anraten von Alexander Vakrilov hier issue 393 Nach und dafür sorgen, dass der erste Import in main.ts import {nativeScriptBootstrap} from "nativescript-angular/application"; behebt das Problem.