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

[Angular] Property 'bracketsViewer' does not exist on type 'Window & typeof globalThis' #79

Closed
Arturlo99 opened this issue Nov 26, 2021 · 2 comments

Comments

@Arturlo99
Copy link

I have followed all of your instructions given within #41.
But the problem is that I still can't refer to window.bracketsViewer inside the .ts file of my component.
I receive such error:

image

I have noticed that I am able to refer this property using DevTools's console of my Google Chrome browser:
image

Are you able to help me with this problem? I would really like to get editable brackets like here: https://replit.com/@Drarig29/brackets-viewerjs.

@Drarig29
Copy link
Owner

Put this somewhere (for example, in your your app.module.ts):

declare global {
    interface Window {
        bracketsViewer?: any | undefined;
    }
}

@Drarig29 Drarig29 changed the title Using with Angular Angular : Property 'bracketsViewer' does not exist on type 'Window & typeof globalThis' Nov 26, 2021
@Drarig29 Drarig29 changed the title Angular : Property 'bracketsViewer' does not exist on type 'Window & typeof globalThis' [Angular] Property 'bracketsViewer' does not exist on type 'Window & typeof globalThis' Nov 26, 2021
@Arturlo99
Copy link
Author

It helped me, thanks :)

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

2 participants