2017-01-25 38 views
0

这可能是一个超级用户的问题,如果它是道歉。离子2与netbeans不断显示错误

我一直在NetBeans中得到一些错误(我的IDE),它采用typescriptangular2插件

我得到的错误: picture of two errors “为装饰的实验支持,是一个功能.. ..“ 和 ”找不到名字'Promise'“

即使我得到这些错误,一切工作正常。所以我只是想找一种方法将它们移除,我已经读了一些ts.config,但我找不到那个文件..

我的项目结构如下所示: enter image description here

我发现ts.config
这只是不是一个 “重要文件” 我想;-)

虽然它似乎没有任何效果:

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

你安装了这个插件吗[链接](http://plugins.netbeans.org/plugin/60605/typescript-editor)。也许netbeans无法识别打字稿。 –

+0

@aminarghavani这就是我所链接到的“打字稿” - 链接;-) –

+0

当您运行'离子信息“时,您会得到什么输出?最近由离子产生的项目有一个'tsconfig.json',其中一个布尔值被设置为'experimentalDecorators'。 (顺便说一句,除了Promise之外,Visual Studio Code也有相同的问题,即使正确设置配置文件也不能解决它) – Ivaro18

回答

0

目前有没有解决方案 netbeans插件的问题。

我已经更改为Visual Studio代码,它提供了一个很好的打印机编译器。