Paldom / angular2-countrypicker

Configurable Angular 2 Country Picker dropdown list (select list)
MIT License
0 stars 21 forks source link

Cannot resolve All Parameters when using ionic build in prod mode #5

Open davart87 opened 7 years ago

davart87 commented 7 years ago

Hello, I am using Ionic 3. I installed angular2-countrypicker in my project. When I execute ionic build (development mode) => I don't get error But when I execute ionic build (prod mode) => I got errors 1. Warning error:
Can't resolve all parameters for CountryPickerService in C:/......./node_modules/angular2-countrypicker/src/country-picker.service.ts : (?, [object Object]). This will become an error in Angular v5.x)

2. Error building : Error: ./node_modules/angular2-countrypicker/index.ts Module build failed: Error: ENOENT: no such file or directory, open 'C:\Users\na noweb\ionic-projects\noma-program\node_modules\angular2-countrypicker\index.js' at Error (native)

guillaume-ro-fr commented 7 years ago

Hi @davart87

I don't know if it's true (https://github.com/Paldom/angular2-countrypicker/issues/3#issuecomment-332495186), but @Paldom don't respond so I've recreated a new component with the corrections and a fix for this error.

https://github.com/guillaume-ro-fr/ngx-country-picker

Feel free to contribute !