无法绑定到 'thick',因为它不是 'ng-progress' 的已知 属性

Can't bind to 'thick' since it isn't a known property of 'ng-progress'

I am trying to use this plugin to my app: https://github.com/MurhafSousli/ngx-progressbar#user-content-automagic-loading-bar

它工作正常,但是当我 运行 测试它时,它失败并出现错误:

无法绑定到 'thick',因为它不是 'ng-progress' 的已知 属性。

app.module.ts

import { NgProgressCustomBrowserXhr, NgProgressModule } from 'ngx-progressbar';
@NgModule({
    declarations: [
        AppComponent
    ],
    imports: [
      NgProgressModule
    ],
    providers: [
      { provide: BrowserXhr, useClass: NgProgressCustomBrowserXhr },
    ],
    bootstrap: [AppComponent]
})
export class AppModule {
}

我的app.component.html

<ng-progress [thick]="'true'" [showSpinner]="'false'"></ng-progress>

当我运行 npm 运行 测试

失败并出现错误:

Error: Template parse errors: 1. If 'ng-progress' is an Angular component, then verify that it is part of this module.

我完全不知道为什么测试只是失败。

正如我在评论中所说,您忘记在测试中提供组件。