小编Sum*_*nde的帖子

打字稿:错误 TS2377:派生类的构造函数必须包含“超级”调用

我正在尝试在我的代码中实现这个angular-upload-file-with-progress-bar 的Stackblitz 示例

export class UploadDocumentTemplateComponent extends FieldType {}
Run Code Online (Sandbox Code Playgroud)

我有这条线是因为我收到了这个错误

错误 TS2377:派生类的构造函数必须包含“超级”调用。

如何解决这个问题?

inheritance constructor typescript angular angular7

1
推荐指数
2
解决办法
777
查看次数

标签 统计

angular ×1

angular7 ×1

constructor ×1

inheritance ×1

typescript ×1