zachfitz/Ionic-Material

Unable to use Ionic Material with Ionic 1.3.1

mittalrahul opened this issue · 3 comments

Ionic Dependency in Ionic Material is "~1.0.0" which restricts us to use Ionic 1.0.x to use in our project.

This generates an error for us when using wiredep.
Error: Error: ionic is not installed. Try running bower install or remove the component from your bower.json file.

same here :/

@Disane87 In bower dependencies, use this link for ionic-material:
https://github.com/mittalrahul/Ionic-Material.git#IM-204

This will fix the issue

@mittalrahul Just tried that:

{
  "name": "HelloIonic",
  "private": "true",
  "devDependencies": {
    "ionic": "driftyco/ionic-bower#1.3.2"
  },
  "dependencies": {
    "ionic": "driftyco/ionic-bower#1.3.2",
    "ion-alpha-scroll": "^0.1.3",
    "ion-sticky": "^1.0.7",
    "ionic-filter-bar": "^1.1.1",
    "angular-translate": "^2.13.0",
    "ion-autocomplete": "^0.3.3",
    "angular-translate-loader-url": "^2.13.0",
    "ngCordova": "^0.1.27-alpha",
    "angular-cache": "^4.6.0",
    "ionic-material": "https://github.com/mittalrahul/Ionic-Material.git#IM-204"
  },
  "resolutions": {
    "angular-sanitize": "1.5.3",
    "angular": "1.5.3",
    "angular-animate": "1.5.3",
    "ionic": "~1.0",
    "ionic-material": "^0.4.2"
  }
}

But it produced the same error on inject-vendor:

var wiredep = require('wiredep').stream;
gulp.task('inject-vendor', function() {
    gulp.src(paths.index)
        .pipe(wiredep({}))
        .pipe(gulp.dest('./www'));
});

Error:

bower postinstall Error: Error: ionic is not installed. Try running bower install or remove the component from your bower.json file.

Additional error details:
events.js:160
throw er; // Unhandled 'error' event

by the way, I'm pretty new to Ionic and the general subject with Bower and so on.