Allow ng2-select to work with ng4
See original GitHub issueWhen I try to npm install an ng4 project (4.0.0) that is using ng2-select, I get the following warning:
ng2-select@1.2.0 requires a peer of @angular/common@^2.3.0 but none was installed.
ng2-select@1.2.0 requires a peer of @angular/core@^2.3.0 but none was installed.
I believe that is because the peer dependencies of version 1.2.0 of ng2-select are locked to 2.x.x, see package.json:
"peerDependencies": {
"@angular/common": "^2.3.0",
"@angular/core": "^2.3.0"
},
It should also allow to be usable with ng4 without producing warnings during npm install
.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:17
Top Results From Across the Web
Developers - Allow ng2-select to work with ng4 - - Bountysource
When I try to npm install an ng4 project (4.0.0) that is using ng2-select, I get the following warning: ng2-select@1.2.0 requires a peer...
Read more >Angular2 : trouble in integrating ng2-select - Stack Overflow
import { SelectModule } from "ng2-select/ng2-select";. then add "SelectModule" to the NgModule.imports array. Now in your component add the following import ...
Read more >ng2-select - npm search
***ng2-group-multiselect*** is an Angular 2 component that allows the selection of multiple items from a select style dropdown box.
Read more >ng2-dropdown-multiselect - Npms.io
***ng2-group-multiselect*** is an Angular 2 component that allows the selection of multiple items from a select style dropdown box.
Read more >ngx-select-ex - npm Package Health Analysis - Snyk
API ; [allowClear], boolean, false, Set to true to allow the selection to be cleared. This option only applies to single-value inputs ;...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
UPD:
npm install --save ng2-select-compat
installs exact copy ofng2-select@1.2.0
with relaxed dependencies It can be used as drop-in replacement of ng2-select:This lib is dead, let’s move on.