我通过npm配置了一个新的Angular2类型的应用。
我可以通过 ng serve
从节点命令提示符运行它。
但是在 IntelliJ IDEA(2016.3.4) 中,我无法从控制台运行。它的显示错误:
Error:Initialization error (typescript). Cannot read property 'getExecutingFilePath' of undefined
最佳答案
请确保在设置 | 中设置Typescript 版本语言与框架 | TypeScript 到 Bundled;由于中断的 API 更改,Typescript 2.6+ 不能与 IDEA 2016.x 一起使用
如果你喜欢使用最新的 TypeScript 版本,你必须将 IDEA 升级到 2018.x
关于angular - 错误 :Initialization error (typescript). 无法读取未定义的属性 'getExecutingFilePath',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50643174/