自定义角度模块,VsCode intellisense不适用于组件

时间:2018-03-08 16:51:27

标签: angular visual-studio-code ng-packagr

我已经为角度创建了一个外部模块,当我尝试在我的其他项目中使用它时,VsCode并不了解组件标签。

我正在使用ng-packagr创建模块。

示例:

<ag-button-delete (agClick)="test()"></ag-button-delete>

[Angular]
'ag-button-delete' is not a known element:
1. If 'ag-button-delete' is an Angular component, then verify that it is part of this module.
2. If 'ag-button-delete' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

但如果我服务甚至构建--prod - 它确实按预期工作......

我的自定义模块包中缺少什么来获取VsCode的智能感知?

我正在使用ng-packagr创建模块。

0 个答案:

没有答案