VadimDez / ng2-pdf-viewer

📄 PDF Viewer Component for Angular
https://vadimdez.github.io/ng2-pdf-viewer/
MIT License
1.3k stars 419 forks source link

Uncaught TypeError: root is undefined #704

Closed thenoober closed 3 years ago

thenoober commented 3 years ago
Bug Report or Feature Request (mark with an x)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [x] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request

I get the following error when including ng2-pdf-viewer

Uncaught TypeError: root is undefined

import { PdfViewerModule } from 'ng2-pdf-viewer';

imports: [
    PdfViewerModule,
    `````
],
"dependencies": {
    "@agm/core": "1.1.0",
    "@agm/drawing": "1.1.0",
    "@agm/js-marker-clusterer": "1.1.0",
    "@agm/snazzy-info-window": "1.1.0",
    "@angular-material-extensions/google-maps-autocomplete": "4.1.0",
    "@angular/animations": "10.0.3",
    "@angular/cdk": "10.0.1",
    "@angular/common": "10.0.3",
    "@angular/compiler": "10.0.3",
    "@angular/core": "10.0.3",
    "@angular/fire": "6.0.4",
    "@angular/flex-layout": "10.0.0-beta.32",
    "@angular/forms": "10.0.3",
    "@angular/material": "10.0.1",
    "@angular/material-moment-adapter": "10.0.1",
    "@angular/platform-browser": "10.0.3",
    "@angular/platform-browser-dynamic": "10.0.3",
    "@angular/router": "10.0.3",
    "@mobiscroll/angular": "file:./src/lib/mobiscroll-package/mobiscroll-angular-4.10.6.tgz",
    "@ngrx/effects": "8.1.0",
    "@ngrx/router-store": "8.1.0",
    "@ngrx/store": "8.1.0",
    "@ngrx/store-devtools": "8.1.0",
    "@ngx-translate/core": "13.0.0",
    "@swimlane/dragula": "3.8.0",
    "@swimlane/ngx-charts": "14.0.0",
    "@swimlane/ngx-datatable": "17.0.0",
    "@swimlane/ngx-dnd": "8.1.2",
    "@types/pdfjs-dist": "2.0.1",
    "@types/prismjs": "1.16.0",
    "agm-direction": "0.8.0",
    "algoliasearch": "4.0.0",
    "angular-calendar": "0.27.13",
    "angular-in-memory-web-api": "0.8.0",
    "angular-instantsearch": "3.0.0-beta.5",
    "angular2-signaturepad": "2.11.0",
    "canvas": "2.6.1",
    "chart.js": "2.8.0",
    "classlist.js": "1.1.20150312",
    "d3": "5.9.7",
    "date-fns": "1.30.1",
    "elasticlunr": "0.9.5",
    "firebase": "8.0.1",
    "hammerjs": "2.0.8",
    "instantsearch.css": "7.4.2",
    "instantsearch.js": "4.6.0",
    "js-marker-clusterer": "1.0.0",
    "jspdf": "^1.5.3",
    "lodash": "4.17.19",
    "material-time-control": "github:SteveDunlap13/MaterialTimeControl",
    "moment": "2.24.0",
    "ng2-charts": "2.3.0",
    "ng2-currency-mask": "9.0.2",
    "ng2-pdf-viewer": "6.3.2",
    "ngrx-store-freeze": "0.2.4",
    "ngx-color-picker": "8.1.0",
    "ngx-cookie-service": "2.2.0",
    "ngx-extended-pdf-viewer": "7.3.1",
    "ngx-toastr": "13.1.0",
    "node-sass": "4.14.1",
    "pdfjs-dist": "2.5.207",
    "perfect-scrollbar": "1.4.0",
    "prismjs": "1.16.0",
    "process": "0.11.10",
    "replace-in-file": "6.1.0",
    "rxjs": "6.6.0",
    "rxjs-compat": "6.5.4",
    "saturn-datepicker": "8.0.5",
    "string-similarity": "4.0.3",
    "strong-soap": "3.0.0",
    "web-animations-js": "2.3.2",
    "zone.js": "0.10.3"
},
"devDependencies": {
    "@angular-devkit/build-angular": "0.1000.1",
    "@angular/cli": "10.0.1",
    "@angular/compiler-cli": "10.0.3",
    "@angular/language-service": "10.0.3",
    "@angularclass/hmr": "2.1.3",
    "@types/googlemaps": "3.39.8",
    "@types/jasmine": "3.3.14",
    "@types/jasminewd2": "2.0.6",
    "@types/jspdf": "1.3.3",
    "@types/lodash": "4.14.136",
    "@types/node": "14.0.20",
    "codelyzer": "5.1.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.5",
    "karma-jasmine": "2.0.1",
    "karma-jasmine-html-reporter": "1.4.2",
    "protractor": "5.4.2",
    "ts-node": "7.0.1",
    "tslib": "1.10.0",
    "tslint": "5.15.0",
    "typescript": "3.9.6",
    "webpack-bundle-analyzer": "3.3.2"
}
VadimDez commented 3 years ago

Sorry, but you didn't include any instructions on how to reproduce the error.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.