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

relax peer dependency to support angular 4.0.0 #636

Closed
Ketec opened this issue Mar 27, 2017 · 29 comments
Closed

relax peer dependency to support angular 4.0.0 #636

Ketec opened this issue Mar 27, 2017 · 29 comments

Comments

@Ketec
Copy link

Ketec commented Mar 27, 2017

currently it results in "requires a peer of" warnings.
It works on current angular 4 release, so perhaps the peerDep could be relaxed to >=4.0.0?

@Drol
Copy link

Drol commented Apr 11, 2017

On 1.3.1 i get the following errors

warning "ng2-dragula@1.3.1" has incorrect peer dependency "@angular/compiler@2.4.3".
warning "ng2-dragula@1.3.1" has incorrect peer dependency "@angular/forms@2.4.3".

Packages

  "dependencies": {
    "@angular/common": "4.0.1",
    "@angular/compiler": "4.0.1",
    "@angular/core": "4.0.1",
    "@angular/forms": "4.0.1",
    "@angular/http": "4.0.1",
    "@angular/platform-browser": "4.0.1",
    "@angular/platform-browser-dynamic": "4.0.1",
    "core-js": "2.4.1",
    "ng2-dragula": "1.3.1",
    "rxjs": "5.3.0",
    "zone.js": "0.8.5"
  },
  "devDependencies": {
    "@angular/compiler-cli": "4.0.1",
    "@types/node": "7.0.12",
    "angular2-template-loader": "0.6.2",
    "awesome-typescript-loader": "3.1.2",
    "raw-loader": "0.5.1",
    "ts-loader": "2.0.3",
    "ts-node": "3.0.2",
    "tslint": "^5.1.0",
    "typescript": "2.2.2",
    "webpack": "2.3.3",
    "webpack-notifier": "1.5.0",
    "xml-loader": "1.2.1"
  }

@peterlaraia
Copy link

Seeing the same as @Drol, look like maybe ngm is picking up & merging the peer dependencies in src/package.json in the build step?

@fredpolicarpo
Copy link

I'm also having the same problem as @Drol

npm WARN ng2-dragula@1.3.1 requires a peer of @angular/compiler@2.4.3 but none was installed.
npm WARN ng2-dragula@1.3.1 requires a peer of @angular/forms@2.4.3 but none was installed.

@lawmbass
Copy link

Same here. Is there a current work around to getting rid of these warnings?

@fluky
Copy link

fluky commented Apr 19, 2017

+1, please get rid of fixed versions as well:

"@angular/compiler": ">=2.0.0 || >=4.0.0-beta.0"

@Hesesses
Copy link

+1

2 similar comments
@basst314
Copy link

+1

@NeuralChris
Copy link

+1

@peterlaraia
Copy link

peterlaraia commented Apr 26, 2017

@vaidd4 I'm pretty sure it's because the build tool being used, ngm-cli, is merging this package.json from the src folder, and using the versions it finds in the root package.json's devDependencies.

So I figure either the peerDependencies versions of compiler & forms need to be explicitly set in the root package.json, like core & common, or they need to be removed from the src/package.json. I haven't made a PR because I'm not sure which is more appropriate

@malecki-se
Copy link

+1

1 similar comment
@BogalooDev
Copy link

+1

@rphovley
Copy link

+1

1 similar comment
@gabrielrosset
Copy link

+1

@BogalooDev
Copy link

BogalooDev commented May 8, 2017

Committed fix regarding @angular/compiler & @angular/forms fixed version and migrated Karma to @Angular/CLI approach in order to fix failing test run based on this

@cormacrelf
Copy link
Contributor

Chill out, this fix is literally just two lines of warnings no longer appearing when you do a build. Will be the only thing in 1.3.2 when that's released, I'm not in charge of that though. Shouldn't have closed in the commit message, I meant to just close the PRs.

@cormacrelf cormacrelf reopened this May 22, 2017
@emin93
Copy link

emin93 commented Jun 2, 2017

Actually this causes more than just a warning if you work with NPM Shrinkwrap. When you try to create a shrinkwrap, it will fail with the following errors.

npm shrinkwrap
npm ERR! Problems were encountered
npm ERR! Please correct and try again.
npm ERR! peer invalid: @angular/compiler@2.4.3, required by ng2-dragula@1.3.1
npm ERR! peer invalid: @angular/forms@2.4.3, required by ng2-dragula@1.3.1

@cormacrelf
Copy link
Contributor

Folks at valor-software are in charge of releasing. I asked about a week ago, got a reply but no action yet.

@fluky
Copy link

fluky commented Jun 2, 2017

Somebody needs to fork this, it meets all the criteria of dead software. When you can't even get a 3 character change done in 2 months...

@cormacrelf
Copy link
Contributor

@fluky Yeah look, you're probably right. Plus there's lots of stuff we just can't do without a bit of rewriting, see #728. Ideally we should be able to do most stuff react-dnd can do.

@axtho
Copy link

axtho commented Jun 3, 2017

If valor is not actively maintaining this I too am all for forking. It is a great library and it would be a pity if it stalls. There are not many good dnd libs for Angular4 out there. What would be in improvement on react-dnd would be to enable proper touch enabled drag/drop/sort (AFAIK dragula does that to some degree).

@OliverNeff
Copy link

It is fixed on master branch. How can I include it in npm directly from github?

@aeimer
Copy link

aeimer commented Jun 6, 2017

psss... A new release is comming soon ;)

@aeimer
Copy link

aeimer commented Jun 7, 2017

Since the version 1.5.0 is out we can close this issue?! @Ketec

@valorkin
Copy link
Member

valorkin commented Jun 7, 2017

published

@valorkin valorkin closed this as completed Jun 7, 2017
@stewx
Copy link

stewx commented Jul 20, 2017

Where is 1.5.0? It's not in the list of releases: https://github.com/valor-software/ng2-dragula/releases

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