Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Unable to resolve signature of parameter decorator when called as an expression. This expression is not callable. Type 'Document' has no call signatures. #398

Open
MunaMurad opened this issue Aug 22, 2021 · 0 comments

Comments

@MunaMurad
Copy link

I have an error when I import DOCUMENT in IONIC 6 -angular :
the code below :

import { DOCUMENT } from '@angular/common'; import { inject, Injectable} from '@angular/core'; import { Renderer2, RendererFactory2 } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ThemeService { private renderer: Renderer2; constructor( rendererFactory:RendererFactory2 , @inject(DOCUMENT) DOCUMENT: Document) { this.renderer = rendererFactory.createRenderer(null,null);

the error message :
Unable to resolve signature of parameter decorator when called as an expression.
This expression is not callable.
Type 'Document' has no call signatures.ts(1239)

(alias) const DOCUMENT: InjectionToken
import DOCUMENT

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant