0

my app doesn't work in production in heroku but works fine in local

my Package.json file: { "name": "Medica_Ligne", "version": "0.0.9", "scripts": { "ng": "ng", "start": "node server.js", "build": "ng build", "watch": "ng build --watch --configuration development", "heroku-postbuild":"ng build --prod --aot", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/cli": "~12.0.1", "@angular/compiler": "~12.0.1", "@angular/common": "~12.0.1", "@angular/compiler-cli": "~12.0.1", "@angular/core": "~12.0.1", "@angular/flex-layout": "^2.0.0-beta.10-4905443", "@angular/forms": "~12.0.1", "@angular/http": "^7.2.16", "@angular/platform-browser": "~12.0.1", "@angular/platform-browser-dynamic": "~12.0.1", "@angular/router": "~12.0.1", "@ionic-native/android-permissions": "^5.33.1", "@ionic-native/base64": "^5.33.1", "@ionic-native/camera": "^5.36.0", "@ionic-native/core": "^5.33.1", "@ionic-native/date-picker": "^5.33.1", "@ionic-native/email-composer": "^5.36.0", "@ionic-native/fcm": "^5.36.0", "@ionic-native/file": "^5.33.1", "@ionic-native/file-transfer": "^5.33.1", "@ionic-native/ionic-webview": "^5.36.0", "@ionic-native/keyboard": "^5.36.0", "@ionic-native/media": "^5.33.1", "@ionic-native/media-capture": "^5.33.1", "@ionic-native/native-audio": "^5.36.0", "@ionic-native/pdf-generator": "^5.36.0", "@ionic-native/splash-screen": "^5.33.1", "@ionic-native/status-bar": "^5.33.1", "@ionic/angular": "^5.5.2", "@ionic/storage": "^2.2.0", "@ngx-translate/core": "^14.0.0", "@ngx-translate/http-loader": "^7.0.0", "cocoapods": "^0.0.0", "express": "^4.18.2", "file-saver": "^2.0.5", "ngx-pagination": "^5.1.1", "ngx-quill": "^5.2.0", "path": "^0.12.7", "quill": "^1.3.7", "rxjs": "~6.5.1", "rxjs-compat": "^6.6.7", "tslib": "^2.0.0", "typescript": "~4.2.4", "zone.js": "~0.11.4" }, "devDependencies": { "@angular-devkit/build-angular": "~12.0.1", "@angular-eslint/builder": "~12.0.0", "@angular-eslint/eslint-plugin": "~12.0.0", "@angular-eslint/eslint-plugin-template": "~12.0.0", "@angular-eslint/template-parser": "~12.0.0", "@angular/cli": "~12.0.1", "@angular/compiler": "~12.0.1", "@angular/compiler-cli": "~12.0.1", "@angular/language-service": "~12.0.1", "@ionic/angular-toolkit": "^4.0.0", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@typescript-eslint/eslint-plugin": "4.16.1", "@typescript-eslint/parser": "4.16.1", "com-badrit-base64": "^0.2.0", "cordova-android": "^9.0.0", "cordova-browser": "^6.0.0", "cordova-ios": "^6.2.0", "cordova-pdf-generator": "^2.1.1", "cordova-plugin-android-permissions": "^1.1.2", "cordova-plugin-androidx": "^3.0.0", "cordova-plugin-androidx-adapter": "^1.1.3", "cordova-plugin-camera": "^5.0.3", "cordova-plugin-datepicker": "^0.9.3", "cordova-plugin-device": "^2.0.2", "cordova-plugin-email-composer": "^0.10.0", "cordova-plugin-fcm-with-dependecy-updated": "^7.8.0", "cordova-plugin-file": "^6.0.2", "cordova-plugin-file-opener2": "^3.0.5", "cordova-plugin-file-transfer": "^1.7.1", "cordova-plugin-ionic-keyboard": "^2.2.0", "cordova-plugin-ionic-webview": "^5.0.0", "cordova-plugin-media": "^5.0.3", "cordova-plugin-media-capture": "^3.0.3", "cordova-plugin-nativeaudio": "^3.0.9", "cordova-plugin-splashscreen": "^5.0.2", "cordova-plugin-statusbar": "^2.4.2", "cordova-plugin-whitelist": "^1.3.3", "cordova-sqlite-storage": "^6.0.0", "eslint": "^7.6.0", "eslint-plugin-import": "2.22.1", "eslint-plugin-jsdoc": "30.7.6", "eslint-plugin-prefer-arrow": "1.2.2", "jasmine-core": "~3.7.1", "jasmine-spec-reporter": "~5.0.0", "karma": "~6.3.2", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.0.3", "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", "protractor": "~7.0.0", "ts-node": "~8.3.0", "typescript": "~4.2.4" }, "engines":{ "npm":"9.4.0", "node":"16.13.2" }, "description": "An Ionic project", "cordova": { "plugins": { "cordova-plugin-splashscreen": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-datepicker": {}, "cordova-plugin-whitelist": {}, "cordova-plugin-device": {}, "cordova-plugin-ionic-keyboard": {}, "cordova-plugin-media": {}, "cordova-plugin-file": {}, "cordova-plugin-file-transfer": {}, "com-badrit-base64": {}, "cordova-plugin-media-capture": {}, "cordova-plugin-android-permissions": {}, "cordova-sqlite-storage": {}, "cordova-plugin-nativeaudio": {}, "cordova-pdf-generator": {}, "cordova-plugin-camera": { "ANDROID_SUPPORT_V4_VERSION": "27.+" }, "cordova-plugin-email-composer": {}, "cordova-plugin-androidx-adapter": {}, "cordova-plugin-androidx": {}, "cordova-plugin-file-opener2": { "ANDROID_SUPPORT_V4_VERSION": "27.+" }, "cordova-plugin-ionic-webview": {}, "cordova-plugin-fcm-with-dependecy-updated": { "ANDROID_DEFAULT_NOTIFICATION_ICON": "@mipmap/ic_launcher", "ANDROID_FCM_VERSION": "21.0.0", "ANDROID_FIREBASE_BOM_VERSION": "26.0.0", "ANDROID_GOOGLE_SERVICES_VERSION": "4.3.4", "ANDROID_GRADLE_TOOLS_VERSION": "4.1.0" } }, "platforms": [ "ios", "browser", "android" ] } }

I did try to set aot=true in angular.json

Nidal
  • 1
  • 1
  • Take a moment to read through the [editing help](/editing-help) in the help center. Formatting on Stack Overflow is different than on other sites. The better your post looks, the easier it is for others to read and understand it. – Jim G. Jan 27 '23 at 19:38

0 Answers0