import-sort icon indicating copy to clipboard operation
import-sort copied to clipboard

Stage 2 decorators cannot be used to decorate parameters

Open mordenfeld opened this issue 5 years ago • 0 comments

Using Sort Imports version 6.1.0.

When compiling this constructor declaration...

constructor(
    @Inject(DynamicDialogConfig) public dialogConfig: DynamicDialogConfig,
    private api: ApiService,
    private stores: StoreService,
    translate: TranslateService) {
    super(translate)
  }

the Sort Imports extension renders the following error

Stage 2 decorators cannot be used to decorate parameters (myfile.ts:37:4)

  35 | 
  36 |   constructor(
> 37 |     @Inject(DynamicDialogConfig) public dialogConfig: DynamicDialogConfig,
     |    ^
  38 |     private api: ApiService,
  39 |     private stores: StoreService,
  40 |     translate: TranslateService) {

mordenfeld avatar Jul 27 '20 09:07 mordenfeld