question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow ng2-select to work with ng4

See original GitHub issue

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 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:open
  • Created 6 years ago
  • Reactions:9
  • Comments:17

github_iconTop GitHub Comments

4reactions
roolebocommented, Apr 17, 2017

UPD: npm install --save ng2-select-compat installs exact copy of ng2-select@1.2.0 with relaxed dependencies It can be used as drop-in replacement of ng2-select:

import { SelectModule } from 'ng2-select-compat'
2reactions
Scipionhcommented, Apr 12, 2017

This lib is dead, let’s move on.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found