Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Production build fails for ionic framework v2 #66

Open
codersudipta opened this issue May 3, 2017 · 0 comments
Open

Production build fails for ionic framework v2 #66

codersudipta opened this issue May 3, 2017 · 0 comments

Comments

@codersudipta
Copy link

codersudipta commented May 3, 2017

General information

  • SDK/Library version: 2.1.0
  • Platforms: iOS/Android/Both
  • Framework: ionic framework 2.2.1

Issue description

"ionic run android --prod --device" fails with following error

pickmyride@ ionic:build /Users/pradip/Projects/PickMyRide
ionic-app-scripts build "--prod" "--device"

[09:40:33] ionic-app-scripts 1.0.0
[09:40:33] build prod started ...
[09:40:33] clean started ...
[09:40:33] clean finished in 6 ms
[09:40:33] copy started ...
[09:40:33] ngc started ...
can't resolve module @ionic-native/core from /Users/pradip/Projects/PickMyRide/node_modules/@ionic-native/card-io/index.d.ts
[09:40:38] build prod failed: Cannot read property 'Plugin' of undefined, resolving symbol CardIO in
/Users/pradip/Projects/PickMyRide/node_modules/@ionic-native/card-io/index.d.ts
[09:40:38] ionic-app-script task: "build"
[09:40:38] Error: Cannot read property 'Plugin' of undefined, resolving symbol CardIO in
/Users/pradip/Projects/PickMyRide/node_modules/@ionic-native/card-io/index.d.ts
Error: Cannot read property 'Plugin' of undefined, resolving symbol CardIO in /Users/pradip/Projects/PickMyRide/node_modules/@ionic-native/card-io/index.d.ts
at simplifyInContext (/Users/pradip/Projects/PickMyRide/node_modules/@angular/compiler-cli/src/static_reflector.js:475:23)
at StaticReflector.simplify (/Users/pradip/Projects/PickMyRide/node_modules/@angular/compiler-cli/src/static_reflector.js:478:22)
at StaticReflector.annotations (/Users/pradip/Projects/PickMyRide/node_modules/@angular/compiler-cli/src/static_reflector.js:60:36)
at NgModuleResolver.resolve (/Users/pradip/Projects/PickMyRide/node_modules/@angular/compiler/bundles/compiler.umd.js:14261:46)
at CompileMetadataResolver._loadNgModuleMetadata (/Users/pradip/Projects/PickMyRide/node_modules/@angular/compiler/bundles/compiler.umd.js:14646:45)
at CompileMetadataResolver.getUnloadedNgModuleMetadata (/Users/pradip/Projects/PickMyRide/node_modules/@angular/compiler/bundles/compiler.umd.js:14636:23)
at addNgModule (/Users/pradip/Projects/PickMyRide/node_modules/@angular/compiler/bundles/compiler.umd.js:12944:43)
at /Users/pradip/Projects/PickMyRide/node_modules/@angular/compiler/bundles/compiler.umd.js:12957:16
at Array.forEach (native)
at _createNgModules (/Users/pradip/Projects/PickMyRide/node_modules/@angular/compiler/bundles/compiler.umd.js:12956:28)

npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "ionic:build" "--" "--prod" "--device"
npm ERR! node v7.4.0
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! pickmyride@ ionic:build: ionic-app-scripts build "--prod" "--device"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pickmyride@ ionic:build script 'ionic-app-scripts build "--prod" "--device"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pickmyride package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts build "--prod" "--device"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs pickmyride
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pickmyride
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/pradip/Projects/PickMyRide/npm-debug.log

package.json

"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/compiler-cli": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic-native/card-io": "^3.5.0",
"@ionic-native/core": "^3.4.4",
"@ionic-native/dialogs": "^3.4.4",
"@ionic-native/firebase": "^3.4.4",
"@ionic-native/push": "^3.4.4",
"@ionic/app-scripts": "1.0.0",
"@ionic/storage": "1.1.7",
"angular2-progressbar": "^0.5.1",
"firebase": "3.6.6",
"geofire": "4.1.2",
"ionic-angular": "2.0.1",
"ionic-native": "2.2.11",
"ionic2-rating": "1.0.0",
"ionicons": "3.0.0",
"localforage": "1.4.0",
"ng2-cordova-oauth": "0.0.8",
"rxjs": "5.0.0-beta.12",
"whatwg-fetch": "2.0.2",
"zone.js": "0.6.26"
},
"devDependencies": {
"@ionic/app-scripts": "1.1.0",
"typescript": "2.0.9"
},

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant