Skip to content

Cannot read property 'document' of undefined #132

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

Closed
Amrelmalky opened this issue Sep 30, 2020 · 5 comments
Closed

Cannot read property 'document' of undefined #132

Amrelmalky opened this issue Sep 30, 2020 · 5 comments

Comments

@Amrelmalky
Copy link

BOM html

script

![move](https://user-images.githubusercontent.com/69693889/94698927-10d03880-033a-11eb-88ed-8b340eb1abda.jpg) ![change bkg](https://user-images.githubusercontent.com/69693889/94698946-13cb2900-033a-11eb-8929-de28bfd20ac5.jpg)
@afarzat-ed
Copy link
Contributor

Hello @Amrelmalky
I can't see how the prints are related to angular-plotly.js

@Amrelmalky
Copy link
Author

change bkg
![move](https://user-images.githubusercontent
change bkg
move

.com/69693889/94699113-4412c780-033a-11eb-94cb-549832c0feb6.jpg)

@owfilip
Copy link

owfilip commented Oct 19, 2020

Hi!
Any updates on that issue? It throws the error even after adding chrome 86 to .browserslistrc
Of maybe there is a workaround?

@andrefarzat
Copy link
Collaborator

hello @owfilip , the document issue is related to plotly.js itself and how angular's compile transpiles it.
Have you tried using PlotlyViaCDNModule module ?

sources:
[1] #89
[2] #75

@owfilip
Copy link

owfilip commented Oct 19, 2020

Thanks! Works!
However, there is one more step, obviously one has to get angular-ploltly.js. Worth adding to readme Plotly Via CDN Module:
npm i --save angular-plotly.js

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

4 participants