2016-08-19 12 views
0

ではありません。例外TypeError:global.moduleMerge私は2.2.1をnativescriptにアップグレードした後、アプリケーションを実行しているとき、私はこのエラーを取得する機能

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 

私は./node_modulesと./platformフォルダの両方を削除しようとしましたすべてが新鮮だが、それが助けにならないようにするために。ここで

は(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

ネイティブiOSライブラリを保持しているので、 "lib"フォルダも削除してください。 –

+0

現時点でAndroid用に実行しています。 – TruckerG

+0

あなたはこの問題にぶつかっているかもしれません。https://github.com/telerik/nativescript-ui-samples-angular/issues/3 –

答えて

0

ここissue 393 アレクサンダーVakrilovからのアドバイスに従い、main.tsの最初のインポートがimport {nativeScriptBootstrap} from "nativescript-angular/application";修正問題であることを確認すること。

関連する問題