Getting error when adding @uirouter/angular-hybrid in angular

595 Views Asked by At

I'm facing the below issue when executing my angular project. I have installed @uirouter/angular-hybrid as well. But still, I'm getting this error

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

Can you please suggest a way to achieve this?

1

There are 1 best solutions below

0
On

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.