问题标签 [angular-cli-v9]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
angular - Angular 10:手动将描述(*d.ts)文件添加到编译中
我有一个角度库,其中包含描述文件 *.d.ts。在下面的结构中
在 tsconfig.lib.json 我已经包含它如下:
编辑
在升级到 10 之前,它被设置为 angular 8。这些文件是在最终构建包中编译的,但是在 Angular 10 之后。我面临这个问题。虽然还有其他文件夹,但 typedefs。
我看到我们需要手动添加的角度升级指南,但不确定什么是正确的方法。
我们更新了 tsconfig.app.json 以限制编译的文件。如果您依赖编译中包含的其他文件,例如 typings.d.ts 文件,则需要手动将其添加到编译中。
https://update.angular.io/?l=3&v=8.0-9.0
回购问题:https ://github.com/amirgc/angular10-ng-build.git
- 下载回购。
- npm 安装
- 构建
javascript - ERROR 错误:Angular JIT 编译失败:'@angular/compiler' 未加载
我在使用 VSCode 的开发环境中运行我的应用程序时突然遇到的错误,
也有一个错误说
由于 ngcc 操作失败,Angular 扩展可能无法正常工作。尝试通过运行“npm/yarn run ngcc”手动调用 ngcc。请参阅扩展输出以获取更多信息。
Package.json 包含以下内容
及其config.json
搜索了许多论坛以解决此问题。但没有什么对我有帮助。
请帮忙