ionic2 TypeError:ctx.sourceFile.getLineEndOfPosition不是函数

时间:2017-08-02 01:34:31

标签: angular typescript ionic2

在终端显示错误:

TypeError: ctx.sourceFile.getLineEndOfPosition is not a function
    at isEntireLine (/Users/zhungzhenzhungzhen/Desktop/minan/node_modules/tslint/lib/rules/noUnusedVariableRule.js:217:32)
    at removeAll (/Users/zhungzhenzhungzhen/Desktop/minan/node_modules/tslint/lib/rules/noUnusedVariableRule.js:209:17)
    at /Users/zhungzhenzhungzhen/Desktop/minan/node_modules/tslint/lib/rules/noUnusedVariableRule.js:164:13
    at /Users/zhungzhenzhungzhen/Desktop/minan/node_modules/tslint/lib/rules/noUnusedVariableRule.js:285:23
    at visitEachNode (/Users/zhungzhenzhungzhen/Desktop/minan/node_modules/typescript/lib/typescript.js:8338:30)
    at Object.forEachChild (/Users/zhungzhenzhungzhen/Desktop/minan/node_modules/typescript/lib/typescript.js:8498:24)
    at forEachImport (/Users/zhungzhenzhungzhen/Desktop/minan/node_modules/tslint/lib/rules/noUnusedVariableRule.js:283:15)
    at addImportSpecifierFailures (/Users/zhungzhenzhungzhen/Desktop/minan/node_modules/tslint/lib/rules/noUnusedVariableRule.js:139:5)
    at walk (/Users/zhungzhenzhungzhen/Desktop/minan/node_modules/tslint/lib/rules/noUnusedVariableRule.js:130:9)
    at /Users/zhungzhenzhungzhen/Desktop/minan/node_modules/tslint/lib/rules/noUnusedVariableRule.js:38:75

离子信息

global packages:

    @ionic/cli-utils : 1.5.0
    Cordova CLI      : 7.0.1 
    Ionic CLI        : 3.5.0

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : android 6.2.3 ios 4.4.0
    Ionic Framework    : ionic-angular 2.0.0

System:

    Node       : v6.11.0
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.3 Build version 8E3004b 
    ios-deploy : 1.9.1 
    ios-sim    : 6.0.0 
    npm        : 3.10.10 

我从github下载了一个项目,之后我的笔记本电脑可以运行一些步骤,但是在运行之后在我的CLI中显示了这个项目。

上传

实际上它不会影响我的项目运行,但我不确定将来会出现什么错误

0 个答案:

没有答案