Starts in:
0 DAY
5 HRS
56 MIN
47 SEC
Starts in:
0 D
5 H
56 M
47 S
Open Closed

Can't resolve all parameters for BookState: (?). #70


User avatar
0
rajasekhard2015 created

I have created the book entity with userinterface from CURD Page generator(abp suite).

I am getting the issue like,

main.ts:12 Error: Can't resolve all parameters for BookState: (?). at getUndecoratedInjectableFactory (core.js:16970) at injectableDefOrInjectorDefFactory (core.js:16954) at providerToFactory (core.js:17022) at providerToRecord (core.js:17004) at R3Injector.processProvider (core.js:16820) at core.js:16781 at core.js:1391 at Array.forEach (<anonymous>) at deepForEach (core.js:1391) at R3Injector.processInjectorType (core.js:16777)


2 Answer(s)
  • User Avatar
    3
    Mehmet created

    Injectable decorator should be added the BookState like this:

    import { Injectable } from '@angular/core'; // import the Injectable
    
    @State<Book.State> ({
     // state metadata
    })
    @Injectable() // add this line
    export class BookState
    
  • User Avatar
    1
    alper created
    Support Team Director

    this issue has been fixed in v2.4 (coming on April 3, 2020)

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06