Ionic 2 - Icon and Splash Screen Image Generation

Hello Team Ionic, m having issue running the command below

$ ionic resources

displaying me this error

TypeError: Cannot read property ‘then’ of undefined
at Object.run (/usr/local/lib/node_modules/ionic/lib/cli.js:135:14)
at Object. (/usr/local/lib/node_modules/ionic/bin/ionic:9:10)
at Module._compile (module.js:425:26)
at Object.Module._extensions…js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Function.Module.runMain (module.js:457:10)
at startup (node.js:138:18)
at node.js:974:3

Cannot read property ‘then’ of undefined (CLI v2.0.0-alpha.23)

Your system information:

Cordova CLI: 5.4.0
Ionic Version: 2.0.0-alpha.35
Ionic CLI Version: 2.0.0-alpha.23
Ionic App Lib Version: 2.0.0-alpha.22
ios-deploy version: Not installed
ios-sim version: 5.0.3
OS: Mac OS X Yosemite
Node Version: v5.1.0
Xcode version: Xcode 7.1.1 Build version 7B1005

This is working fine on version 1 how can i resolve this on version 2

See here

1 Like

Thanks Richards i followed the same procedure you mentioned copy n paste but this issue should be solved by the ionic team by now

No, the issue is still open: https://github.com/driftyco/ionic2/issues/577