Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Ionic Material with Ionic 1.3.1 #204

Open
mittalrahul opened this issue Jul 22, 2016 · 3 comments
Open

Unable to use Ionic Material with Ionic 1.3.1 #204

mittalrahul opened this issue Jul 22, 2016 · 3 comments

Comments

@mittalrahul
Copy link

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.

@Disane87
Copy link

same here :/

@mittalrahul
Copy link
Author

mittalrahul commented Nov 23, 2016

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

This will fix the issue

@Disane87
Copy link

Disane87 commented Nov 23, 2016

@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.

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

No branches or pull requests

2 participants