Я использую библиотеку pdf js -dist для моего проекта ioni c v3, и во время процесса разработки все было в порядке, так что после того, как я потянул запросить эту ошибку обнаружился, и я не знаю, как это исправить. Я прочитал здесь, в стеке, похожую ошибку, но в Angular проекте, и я не мог понять достаточно, чтобы решить мою проблему. Люди говорят, чтобы импортировать Zone. js после моей библиотеки, но я не знаю, как это сделать на Ioni c, потому что Zone. js и pdf js -dist оба являются зависимостями node_modules.
Мои зависимости:
"dependencies": {
"@angular/animations": "^5.2.1",
"@angular/common": "^5.2.1",
"@angular/compiler": "^5.2.1",
"@angular/compiler-cli": "^5.2.1",
"@angular/core": "^5.2.1",
"@angular/forms": "^5.2.1",
"@angular/http": "^5.2.1",
"@angular/platform-browser": "^5.2.1",
"@angular/platform-browser-dynamic": "^5.2.1",
"@ionic-native/android-permissions": "^4.5.3",
"@ionic-native/app-minimize": "^4.5.3",
"@ionic-native/app-version": "^4.20.0",
"@ionic-native/base64": "^4.20.0",
"@ionic-native/calendar": "^4.5.3",
"@ionic-native/camera": "^4.5.3",
"@ionic-native/clipboard": "^4.5.3",
"@ionic-native/core": "^4.11.0",
"@ionic-native/deeplinks": "^4.7.0",
"@ionic-native/document-viewer": "^5.23.0",
"@ionic-native/fabric": "^4.20.0",
"@ionic-native/file": "^4.12.2",
"@ionic-native/file-chooser": "^4.12.2",
"@ionic-native/file-opener": "^4.12.2",
"@ionic-native/file-path": "^4.12.2",
"@ionic-native/file-transfer": "^4.12.2",
"@ionic-native/firebase-analytics": "^4.5.3",
"@ionic-native/image-picker": "^4.15.0",
"@ionic-native/in-app-browser": "^4.7.0",
"@ionic-native/keyboard": "^4.6.0",
"@ionic-native/network": "^4.6.0",
"@ionic-native/onesignal": "^4.5.3",
"@ionic-native/splash-screen": "^4.4.0",
"@ionic-native/status-bar": "^4.4.0",
"@ionic/storage": "^2.1.3",
"angular-froala-wysiwyg": "^2.8.4-1",
"angular2-draggable": "^1.4.2",
"brmasker-ionic-3": "^1.6.3",
"chart.js": "^2.7.2",
"com-badrit-base64": "0.2.0",
"com-sarriaroman-photoviewer": "^1.1.18",
"cordova-android": "^8.0.0",
"cordova-browser": "^5.0.4",
"cordova-clipboard": "^1.1.1",
"cordova-fabric-plugin": "1.1.14-dev",
"cordova-ios": "^4.5.5",
"cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-appminimize": "^1.0.0",
"cordova-plugin-calendar": "^5.1.2",
"cordova-plugin-camera": "^4.0.3",
"cordova-plugin-device": "^1.1.7",
"cordova-plugin-document-viewer": "0.9.13",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-file-opener2": "^2.0.19",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-firebase-analytics": "^0.12.1",
"cordova-plugin-inappbrowser": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^1.2.1",
"cordova-plugin-ios-camera-permissions": "git+https://github.com/Cordobo/cordova-plugin-ios-camera-permissions.git",
"cordova-plugin-network-information": "^2.0.1",
"cordova-plugin-splashscreen": "^4.1.0",
"cordova-plugin-telerik-imagepicker": "^2.2.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-sqlite-storage": "^3.3.0",
"cordova-support-google-services": "^1.0.0",
"cropperjs": "^1.3.2",
"device": "^0.3.9",
"firebase": "^4.8.2",
"intl": "^1.2.5",
"ionic-angular": "^3.9.2",
"ionic-img-viewer": "^2.9.0",
"ionic-plugin-deeplinks": "^1.0.17",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "^3.0.0",
"moment": "^2.20.1",
"moment-timezone": "^0.5.23",
"ng2-charts": "^1.6.0",
"ngx-clipboard": "^9.1.3",
"node-properties-parser": "0.0.2",
"onesignal-cordova-plugin": "^2.7.0",
"pdfjs-dist": "^2.0.489",
"promise-polyfill": "^7.0.0",
"rxjs": "^5.5.0",
"sw-toolbox": "^3.6.0",
"web-animations-js": "^2.3.1",
"zone.js": "^0.8.18"
},
"devDependencies": {
"@angular/cli": "1.6.4",
"@ionic/app-scripts": "^3.2.4",
"@types/cropperjs": "1.1.2",
"@types/pdfjs-dist": "^2.1.3",
"node-sass": "^4.12.0",
"typescript": "~2.6.2"
},
@ ionic / cli-utils: 1.9.2 ioni c (Ioni c CLI): 3.9.2
global packages:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
local packages:
@ionic/app-scripts : 3.2.4
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.9
System:
Node : v8.16.0
npm : 6.4.1
OS : Windows 10
Пожалуйста, кто-нибудь, помогите, я застрял на этой ошибке прямо сейчас.