riteshgandhi / ng-star-rating

Highly Customizable and Responsive Star Rating library built using Angular
MIT License
38 stars 10 forks source link

TypeError: Cannot read property 'kind' of undefined at isAngularDecoratorMetadataExpression #23

Open baj9032 opened 4 years ago

baj9032 commented 4 years ago

here is the full error.

[15:10:39]  Error: ./node_modules/ng-starrating/fesm5/ng-starrating.js Module build failed: TypeError: Cannot read 
            property 'kind' of undefined at isAngularDecoratorMetadataExpression

Package-json

"dependencies": {
    "@angular/common": "5.0.0",
    "@angular/compiler": "5.0.0",
    "@angular/compiler-cli": "5.0.0",
    "@angular/core": "5.0.0",
    "@angular/forms": "5.0.0",
    "@angular/http": "5.0.0",
    "@angular/platform-browser": "5.0.0",
    "@angular/platform-browser-dynamic": "5.0.0",
    "@angular/tsc-wrapped": "^4.4.6",
    "@ionic-native/camera": "4.3.3",
    "@ionic-native/code-push": "^4.12.0",
    "@ionic-native/core": "4.3.3",
    "@ionic-native/geolocation": "^4.20.0",
    "@ionic-native/google-analytics": "^4.20.0",
    "@ionic-native/splash-screen": "4.3.3",
    "@ionic-native/status-bar": "4.3.3",
    "@ionic/storage": "2.1.3",
    "@ngx-translate/core": "8.0.0",
    "@ngx-translate/http-loader": "^2.0.0",
    "@types/google.analytics": "0.0.39",
    "@types/moment": "^2.13.0",
    "autoprefixer": "^7.1.6",
    "code-push": "^2.0.6",
    "cordova-android": "~6.4.0",
    "cordova-browser": "5.0.4",
    "cordova-ios": "4.5.5",
    "cordova-plugin-code-push": "^1.11.12",
    "cordova-plugin-compat": "^1.2.0",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-dialogs": "^2.0.1",
    "cordova-plugin-file": "^4.3.3",
    "cordova-plugin-file-transfer": "^1.6.3",
    "cordova-plugin-firebase": "2.0.5",
    "cordova-plugin-geolocation": "4.0.1",
    "cordova-plugin-google-analytics": "1.8.6",
    "cordova-plugin-ionic": "^3.1.3",
    "cordova-plugin-splashscreen": "^4.1.0",
    "cordova-plugin-statusbar": "^2.2.2",
    "cordova-plugin-whitelist": "^1.3.1",
    "cordova-plugin-zip": "^3.1.0",
    "ionic": "^4.1.0",
    "ionic-angular": "3.9.2",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "lodash": "^4.17.10",
    "moment": "^2.24.0",
    "ng-starrating": "^1.0.7",
    "ngx-img-fallback": "^1.3.4",
    "ngx-socket-io": "^3.0.1",
    "rxjs": "5.5.2",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "^3.1.2",
    "@ionic/lab": "1.0.20",
    "typescript": "^3.7.5",
    "ws": "3.3.2"
  },

To build App:

"build:production": "ionic build --prod",
hassan-gaditek commented 3 years ago

Facing same error with angular 6 when build for production using ng b --prod But when running simple ng serve it works fine. Can someone provide any solution?

dashagranthiprithvi commented 3 years ago

In angular.json disable build optimizer --Temp fix "buildOptimizer": false