在角度cli 1.5+更新后,节点包出错

时间:2018-02-27 17:08:18

标签: angular typescript npm angular-cli

所以我将我们的应用程序从角度2升级到角度5,一切看起来都很好,直到我将我的cli版本(之前的角度为2)更新为最新的1.7.1

问题是某些npm软件包正在抛出这样的错误

some.directive.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.

The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format.

所以看起来这些软件包是错误构建的,谷歌搜索它我发现它是1.5版本中修复的angular / cli中的一个bug。

https://blog.angular.io/version-5-0-0-of-angular-now-available-37e414935ced#148d

我尝试将相应的ts文件放在tsconfig.json中,但它没有用,或者我错过了某些东西。

除了分配包源并进行正确构建之外,可能有什么解决方案(这是我最糟糕的情况)

0 个答案:

没有答案