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

Error: Can't resolve all parameters for MatSelectCountryModule: (?, ?) #25

Closed
hayha06 opened this issue Jul 20, 2020 · 10 comments
Closed
Labels
need investigation unclear ticket

Comments

@hayha06
Copy link

hayha06 commented Jul 20, 2020

When starting application I receive the following error
Error: Can't resolve all parameters for MatSelectCountryModule: (?, ?)

My package.json
"dependencies": { "@angular-material-extensions/select-country": "^1.3.0", "@angular/animations": "^9.1.12", "@angular/cdk": "^9.2.4", "@angular/common": "^9.0.0", "@angular/compiler": "^9.0.0", "@angular/core": "^9.0.0", "@angular/flex-layout": "^10.0.0-beta.32", "@angular/forms": "^9.1.12", "@angular/material": "^9.2.4", "@angular/platform-browser": "^9.0.0", "@angular/platform-browser-dynamic": "^9.0.0", "@angular/platform-server": "^9.0.0", "@angular/router": "^9.0.0", "@nguniversal/module-map-ngfactory-loader": "^7.1.1", "bootstrap": "^4.1.3", "classlist.js": "^1.1.20150312", "core-js": "^3.6.5", "hammerjs": "^2.0.8", "jquery": "^3.5.1", "popper.js": "^1.14.3", "rxjs": "^6.6.0", "rxjs-compat": "^6.4.0", "svg-country-flags": "^1.2.7", "zone.js": "^0.10.3" },

@Tbiniimene
Copy link

+1

1 similar comment
@JoseAlbertoVazq
Copy link

+1

@JoseAlbertoVazq
Copy link

JoseAlbertoVazq commented Jul 21, 2020

I think that removing HttpClientModule from the library in the new 1.3.0 version in order to fix the interceptors issue made this issue. @AnthonyNahas It would be great if this can be fixed soon because I am using http interceptors too in my project and now I can not event run the whole project.

@monikagujar
Copy link

Screenshot from 2020-08-05 14-24-09

I am also getting the same error

I just followed 2 steps:

  1. Recommended installation
    ng add @angular-material-extensions/select-country

  2. added code in html

That's it

Referred this https://angular-material-extensions.github.io/select-country/doc/index.html

@Bruswei
Copy link

Bruswei commented Aug 5, 2020

In my project I am using Angular 8 and I was getting this error as well. I ended up by install version 1.2.0 and remove src from output:

          {
            "glob": "**/*",
            "input": "./node_modules/svg-country-flags/svg",
            "output": "/assets/svg-country-flags/svg"
          }

@AnthonyNahas
Copy link
Member

Did you import the http client module ?

@AnthonyNahas AnthonyNahas added the need investigation unclear ticket label Aug 5, 2020
@Bruswei
Copy link

Bruswei commented Aug 7, 2020

Did you import the http client module ?

This was imported in a sub-module without http module.

@AnthonyNahas
Copy link
Member

Finally solved in v.1.3.1

thanks for contributing 🍻

@wojciechhicu
Copy link

In my project I am using Angular 8 and I was getting this error as well. I ended up by install version 1.2.0 and remove src from output:

          {
            "glob": "**/*",
            "input": "./node_modules/svg-country-flags/svg",
            "output": "/assets/svg-country-flags/svg"
          }

I did what you sayid and that worked for me thanks

@AnthonyNahas
Copy link
Member

thanks for sharing 🐈

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

No branches or pull requests

7 participants