-
-
Notifications
You must be signed in to change notification settings - Fork 78
Cannot read property 'document' of undefined #75
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
Comments
@TravisLRiffle looks like it was the missing support for angular 8.x |
Hello @andrefarzat , i have the same problem when i run with the example and im using version 1.4.0. this is the screenshot of the error that i inspect with Chrome |
I'm getting the exact same issue. I'm using version 1.4.0
Also my node and angular versions are as follows.
|
Hello @dre2004 , @TravisLRiffle and @longtuan96 As a quick solution, changing in the Gonna close this issue. Please, reopen if it's still an issue 😸 |
I went with the CDN for now, but now I'm getting a completely different error on a very basic bar chart. Seems like I'm never going to get this library working. :( |
@TravisLRiffle which plotly.js version you're using ? |
Both |
Getting the same issue
|
For me the problem was this:
Fixed:
|
On a brand new project, following your directions I receive the following:
Cannot read property 'document' of undefined
at plotly.js:24874
I ran your github demo and it worked fine. Here is my package.json
{ "name": "plotly-test-new", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/animations": "~8.2.0", "@angular/common": "~8.2.0", "@angular/compiler": "~8.2.0", "@angular/core": "~8.2.0", "@angular/forms": "~8.2.0", "@angular/platform-browser": "~8.2.0", "@angular/platform-browser-dynamic": "~8.2.0", "@angular/router": "~8.2.0", "angular-plotly.js": "^1.3.2", "plotly.js": "^1.49.4", "rxjs": "~6.4.0", "tslib": "^1.10.0", "zone.js": "~0.9.1" }, "devDependencies": { "@angular-devkit/build-angular": "~0.802.0", "@angular/cli": "~8.2.0", "@angular/compiler-cli": "~8.2.0", "@angular/language-service": "~8.2.0", "@types/node": "~8.9.4", "@types/jasmine": "~3.3.8", "@types/jasminewd2": "~2.0.3", "codelyzer": "^5.0.0", "jasmine-core": "~3.4.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~4.1.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.0", "protractor": "~5.4.0", "ts-node": "~7.0.0", "tslint": "~5.15.0", "typescript": "~3.5.3" } }
The text was updated successfully, but these errors were encountered: