我正在尝试在Angular应用中使用PdfMake,同时遵循本指南:https://www.npmjs.com/package/ng-pdf-make我似乎无法让它发挥作用。 这是我app.module.ts的内容:
// other imports are here
import { PdfmakeModule } from 'ng-pdf-make'; // edited
@NgModule({
declarations: [
AppComponent,
InvalidRequestComponent,
LoadingComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
AppRoutingModule,
PdfmakeModule
],
bootstrap: [AppComponent]
})
export class AppModule { }
我得到的错误是:
"Uncaught Error: Unexpected value 'PdfmakeModule' imported by the
module 'AppModule'. Please add a @NgModule annotation."
提前致谢!