2017-08-14 64 views
2

我有问题,我离子的应用程序,在离子&角servicestack一些更新后,给我的错误,如下面的离子应用,打字稿出错找不到名称“请求模式”

打字稿出错找不到名称“请求模式” 。 node_modules/servicestack客户端/ src目录/ index.d.ts

oneWayBaseUrl: string; 
mode: RequestMode; 
credentials: RequestCredentials; 

打字稿出错找不到名称 'RequestCredentials'。 node_modules/servicestack客户端/ src目录/ index.d.ts

mode: RequestMode; 
credentials: RequestCredentials; 
headers: Headers; 

我离子,角度和电脑信息

Typescript : 2.4.2 
Ionic Framework: 3.1.1 
Ionic App Scripts: 1.3.4 
Angular Core: 4.0.2 
Angular Compiler CLI: 4.0.2 
Node: 6.10.0 
OS Platform: macOS Sierra 
Navigator Platform: MacIntel 
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36 

tsconfig.json文件

{ 
    "compilerOptions": { 
    "allowSyntheticDefaultImports": true, 
    "declaration": false, 
    "emitDecoratorMetadata": true, 
    "experimentalDecorators": true, 
    "target": "es5", 
    "module": "commonjs", 
    "lib": ["dom","es2015"], 
    "moduleResolution": "node", 
    "sourceMap": true 
    }, 
    "include": [ 
    "src/**/*.ts", 
    "typings/**/*.ts" 
    ], 
    "exclude": [ 
    "node_modules" 
    ], 
    "compileOnSave": false, 
    "atom": { 
    "rewriteTsconfig": false 
    } 
} 

回答