angular-hybrid
angular-hybrid copied to clipboard
The target entry-point "@uirouter/angular-hybrid" has missing dependencies
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
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.
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.