Chris
Chris

Reputation: 811

JHipster - warnings on new project generation

I'm just dipping my toes into JHipster and I'm finding that I'm getting lots of warnings upon generating a new project. They all seem to center around this "source-map" item.

warning Resolution field "[email protected]" is incompatible with requested version "source-map@^0.5.6"

I'm getting 27 lines of warnings with differing version numbers.

The project still builds successfully and runs.

What is going on here?

TY

Upvotes: 5

Views: 2129

Answers (1)

Gaël Marziou
Gaël Marziou

Reputation: 16294

This is how yarn/npm resolve version conflicts between transitive dependencies, see doc on dependency versioning

Some dependencies require an old version of source-map package but JHipster team has found that only 0.6.1 works (see issue) so they forced it in package.json in resolutions property until the other project release a new version. Yarn applies the resolution but complains because according to semantic versioning rules version 0.6.1 could break dependencies that require ^0.5.6 but it's only a guess.

You can find what's going on in details by inspecting yarn.lock and looking for source-map.

Upvotes: 5

Related Questions