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

GmailJS library (1.1.14) is failing to load (with error in console) #787

Open
shashikiran-im opened this issue Mar 25, 2024 · 3 comments
Open

Comments

@shashikiran-im
Copy link
Contributor

Hi GmailJS Team,

From two / three days I observed Gmail JS is failing to load in Gmail page and it is throwing error as below,
Also I tried boilerplate project with latest Gmail JS version 1.1.14 and observed same issue.

Error in console:
Uncaught TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment.
at jquery.js:4665:6
at jquery.js:4673:1
at jquery.js:25:4
at node_modules/jquery/dist/jquery.js (jquery.js:37:1)
at __require (gmailJsLoader.js:5:52)
at gmailJsLoader.js:14:16
at gmailJsLoader.js:18:67

Please let me know if anyone facing similar issue.
Kindly request to let me know if anyone knows root cause of the issue so that I will give a try to address / if anyone is addressed the issue.

Thanks in Advance,
Shashikiran

@josteink
Copy link
Collaborator

See this thread for details:

#779

@RejownAhmed
Copy link

Facing same issue here

@josteink
Copy link
Collaborator

josteink commented Aug 14, 2024

See the updated boilerplate repo for how to cirumvent this:

https://github.com/josteink/gmailjs-node-boilerplate/blob/master/src/gmailJsLoader.js

(Note: This requires a updated/beta version of jQuery)

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

3 participants