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

Support for angular #467

Open
dvalley56 opened this issue Jun 28, 2023 · 0 comments
Open

Support for angular #467

dvalley56 opened this issue Jun 28, 2023 · 0 comments

Comments

@dvalley56
Copy link

dvalley56 commented Jun 28, 2023

Hii courier team,

I am using an angular application, I am already using courier email and it works flawlessly.
I wanted to integrate the courier inbox, but I am not able to. I went to the documentation but it didn't work, it throwed an error.

v3.9.1.js:2  Uncaught (in promise) TypeError: Cannot read properties of null (reading 'appendChild')
    at v3.9.1.js:2:261530
    at f (v3.9.1.js:2:6744)
    at Generator.<anonymous> (v3.9.1.js:2:8062)
    at Generator.next (v3.9.1.js:2:7154)
    at e (v3.9.1.js:2:249976)
    at u (v3.9.1.js:2:261900)
    at v3.9.1.js:2:261959
    at new Promise (<anonymous>)
    at v3.9.1.js:2:261840
    at v3.9.1.js:2:262002

I would love to see an example or a guide I can follow.
Thank you.

Edit:

I further debugged and fix this issue. It still doesn't works in angular.
The only issue is when <courier-toast> and <courier-inbox> are inside app component or any other component they don't work but the backend works, I can see notification arriving in the network tab.

When I moved this two in index.html they worked till the app-root was loading.

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

No branches or pull requests

1 participant