在 @hallysonh/ngx-imageviewer 下一个、上一个和缩放选项不起作用之后,将 Angular 7 升级到 11

发布于 2025-01-17 01:36:59 字数 2701 浏览 0 评论 0原文

之后我将 Angular 7 升级到 11 @hallysonh/[电子邮件受保护] (下一个、上一个和缩放)选项不起作用。我尝试使用节点 12.20.0 和 14.15.0。我能够查看 pdf这些按钮< /a> 但上一个、下一个、缩放按钮不起作用。单击它时没有任何反应。我猜我的 [email protected] 与 Angular 11 不兼容。我可以吗知道 pdfjs-dist 适合的版本角11?

  "dependencies": {
    "@angular/animations": "^11.2.14",
    "@angular/cdk": "^11.2.13",
    "@angular/common": "~11.2.14",
    "@angular/compiler": "~11.2.14",
    "@angular/core": "~11.2.14",
    "@angular/forms": "~11.2.14",
    "@angular/material": "^11.2.13",
    "@angular/platform-browser": "~11.2.14",
    "@angular/platform-browser-dynamic": "~11.2.14",
    "@angular/router": "~11.2.14",
    "@hallysonh/ngx-imageviewer": "^2.0.4",
    "@stomp/stompjs": "^4.0.7",
    "@types/bootstrap": "^4.2.0",
    "@types/highcharts": "^5.0.36",
    "@types/jquery": "^3.3.29",
    "@types/node": "^12.11.1",
    "angular-user-idle": "^2.2.1",
    "angular2-tree-diagram": "^1.0.6",
    "bootstrap": "^4.1.3",
    "core-js": "2.5.4",
    "d3": "^5.7.0",
    "file-saver": "^1.3.3",
    "font-awesome": "^4.7.0",
    "fscreen": "^1.0.2",
    "hammerjs": "^2.0.8",
    "highcharts": "^7.0.3",
    "highcharts-angular": "^2.4.0",
    "jquery": "^3.3.1",
    "material-design-icons": "^3.0.1",
    "moment": "^2.23.0",
    "moment-timezone": "^0.5.23",
    "ng-sidebar": "^8.0.0",
    "ng2-ace-editor": "^0.3.9",
    "pdfjs-dist": "^2.0.489",
    "popper.js": "^1.14.5",
    "print-js": "1.0.47",
    "proj4": "^2.5.0",
    "rxjs": "~6.6.7",
    "sockjs-client": "^1.3.0",
    "tslib": "^2.3.1",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.1102.18",
    "@angular/cli": "~11.2.18",
    "@angular/compiler-cli": "~11.2.14",
    "@angular/language-service": "~11.2.14",
    "@types/jasmine": "~3.6.0",
    "@types/jasminewd2": "~2.0.3",
    "codelyzer": "^6.0.0",
    "glob-run": "^0.1.7",
    "husky": "^4.2.5",
    "jasmine-core": "~3.6.0",
    "jasmine-spec-reporter": "~5.0.0",
    "js-beautify": "^1.11.0",
    "karma": "~6.3.16",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "lint-staged": "^10.2.9",
    "prettier": "^2.0.5",
    "protractor": "~7.0.0",
    "ts-node": "~7.0.0",
    "tslint": "~6.1.0",
    "tslint-sonarts": "^1.9.0",
    "typescript": "~4.0.8"
  }
}

I upgrade Angular 7 to 11 after that @hallysonh/[email protected] (next, previous and zoom) options are not working. I tried with both node 12.20.0 and 14.15.0.I'm able to view the pdfthese buttons but previous, next, zoom buttons are not working. nothing is happening while clicking it. I guess my [email protected] is not compatible with Angular 11. May I know the pdfjs-dist suitable version for Angular11?

  "dependencies": {
    "@angular/animations": "^11.2.14",
    "@angular/cdk": "^11.2.13",
    "@angular/common": "~11.2.14",
    "@angular/compiler": "~11.2.14",
    "@angular/core": "~11.2.14",
    "@angular/forms": "~11.2.14",
    "@angular/material": "^11.2.13",
    "@angular/platform-browser": "~11.2.14",
    "@angular/platform-browser-dynamic": "~11.2.14",
    "@angular/router": "~11.2.14",
    "@hallysonh/ngx-imageviewer": "^2.0.4",
    "@stomp/stompjs": "^4.0.7",
    "@types/bootstrap": "^4.2.0",
    "@types/highcharts": "^5.0.36",
    "@types/jquery": "^3.3.29",
    "@types/node": "^12.11.1",
    "angular-user-idle": "^2.2.1",
    "angular2-tree-diagram": "^1.0.6",
    "bootstrap": "^4.1.3",
    "core-js": "2.5.4",
    "d3": "^5.7.0",
    "file-saver": "^1.3.3",
    "font-awesome": "^4.7.0",
    "fscreen": "^1.0.2",
    "hammerjs": "^2.0.8",
    "highcharts": "^7.0.3",
    "highcharts-angular": "^2.4.0",
    "jquery": "^3.3.1",
    "material-design-icons": "^3.0.1",
    "moment": "^2.23.0",
    "moment-timezone": "^0.5.23",
    "ng-sidebar": "^8.0.0",
    "ng2-ace-editor": "^0.3.9",
    "pdfjs-dist": "^2.0.489",
    "popper.js": "^1.14.5",
    "print-js": "1.0.47",
    "proj4": "^2.5.0",
    "rxjs": "~6.6.7",
    "sockjs-client": "^1.3.0",
    "tslib": "^2.3.1",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.1102.18",
    "@angular/cli": "~11.2.18",
    "@angular/compiler-cli": "~11.2.14",
    "@angular/language-service": "~11.2.14",
    "@types/jasmine": "~3.6.0",
    "@types/jasminewd2": "~2.0.3",
    "codelyzer": "^6.0.0",
    "glob-run": "^0.1.7",
    "husky": "^4.2.5",
    "jasmine-core": "~3.6.0",
    "jasmine-spec-reporter": "~5.0.0",
    "js-beautify": "^1.11.0",
    "karma": "~6.3.16",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "lint-staged": "^10.2.9",
    "prettier": "^2.0.5",
    "protractor": "~7.0.0",
    "ts-node": "~7.0.0",
    "tslint": "~6.1.0",
    "tslint-sonarts": "^1.9.0",
    "typescript": "~4.0.8"
  }
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文