Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

TypeScript Error: Constructor implementation is missing.ts(2390)

15.03.2023 (👁2892)


 

 

Fehlermeldung

(alias) class Article
import Article

Constructor implementation is missing.ts(2390)

A parameter property is only allowed in a constructor implementation.ts(2369)

 

In Fehlerhafter Code

  export class ArticlesService {

    constructor(

      @Inject('xx')

      private articleRepository: Repository<Article>

    )

 

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

 

Lösung:

Man muss die geschweiften {} Klammern ergänzen

export class ArticlesService {

    constructor(

      @Inject('xx')

      private articleRepository: Repository<Article>

    ){}