Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stage 2 decorators cannot be used to decorate parameters #124

Open
mordenfeld opened this issue Jul 27, 2020 · 0 comments
Open

Stage 2 decorators cannot be used to decorate parameters #124

mordenfeld opened this issue Jul 27, 2020 · 0 comments

Comments

@mordenfeld
Copy link

mordenfeld commented Jul 27, 2020

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) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant