Open Closed

ABP Commerical Tutorial Errors Angular #920


0
[email protected] created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v4.2.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): unknown
  • Exception message and stack trace:
  • src/app/book/book.component.ts:5:16 5 templateUrl: './book.component.html', ~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component BookComponent. src/app/book/book.component.html:13:49 - error TS2339: Property 'book' does not exist on type 'BookComponent'.

13 <ngx-datatable [rows]="book.items" [count]="book.totalCount" [list]="list" default> ~~~~

src/app/book/book.component.ts:5:16 5 templateUrl: './book.component.html', ~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component BookComponent. src/app/book/book.component.html:13:74 - error TS2339: Property 'list' does not exist on type 'BookComponent'.

13 <ngx-datatable [rows]="book.items" [count]="book.totalCount" [list]="list" default> ~~~~

src/app/book/book.component.ts:5:16 5 templateUrl: './book.component.html', ~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component BookComponent.

Also I believe there is an error in the book.component.ts file as there is no import statement for BookType
  • Steps to reproduce the issue:
  • following the tutorial up to the book detail page : https://docs.abp.io/en/abp/latest/Tutorials/Part-2?UI=NG&DB=EF

2 Answer(s)
  • 0
    maliming created
    Support Team

    hi

    Please check this pr https://github.com/abpframework/abp/pull/4857/files

  • 0
    ServiceBot created
    Support Team

    This question has been automatically marked as stale because it has not had recent activity.