angular-hybrid icon indicating copy to clipboard operation
angular-hybrid copied to clipboard

The target entry-point "@uirouter/angular-hybrid" has missing dependencies

Open dwilches opened this issue 3 years ago • 1 comments

I followed the instructions in the readme, and when I did ng serve I got this error:

The target entry-point "@uirouter/angular-hybrid" has missing dependencies:
 - @uirouter/core
 - @uirouter/angular
 - @uirouter/angularjs
 - @uirouter/rx

Even though the readme explicitly says to remove the package @uirouter/angularjs

What can this be caused by?

I'm using Angular.js 1.8.2 with Angular 11.0.5

dwilches avatar Jan 06 '21 21:01 dwilches

I resolved it using the following packages:

    "@uirouter/angular-hybrid": "^12.0.0",
    "@uirouter/angular": "^8.0.0",
    "@uirouter/angularjs": "^1.0.26",
    "@uirouter/rx": "^0.6.0",

The versions are taken from the peerDependencies from node_modules\@uirouter\angular\package.json and node_modules\@uirouter\angular-hybrid\package.json

I'd still like to understand why these needed adding manually though.

tjrobinson avatar Apr 22 '21 11:04 tjrobinson

Need to update readme as we moved to peerDependencies as it makes it easier to update versions and it's inline in how angular handles dependencies.

wawyed avatar Oct 12 '22 14:10 wawyed