ui-router / angular-hybrid

Upgrade an ng1 UI-Router app to a ng1+ng2 hybrid using ng-upgrade
MIT License
167 stars 75 forks source link

random error: Cannot find module '@uirouter/angularjs' or its corresponding type declarations. #587

Open hichem1987 opened 1 year ago

hichem1987 commented 1 year ago

Hi I have this random error showing when I run ng serve or npm run build

ERROR in node_modules/@uirouter/angular-hybrid/interfaces.d.ts:2:61 - error TS2307: Cannot find module '@uirouter/angularjs' or its corresponding type declarations.

2 import { Ng1StateDeclaration, Ng1StateTransitionHook } from '@uirouter/angularjs';

"@uirouter/angular": "^7.0.0", "@uirouter/angular-hybrid": "^11.0.2", "@uirouter/angularjs": "^1.0.30", angular 12.2.16 angularJs 1.4.7 node 10.17.24 npm 6.14.8

it is happening on both windows and linux instances. thank you for your help

wawyed commented 1 year ago

You need to install @uirouter/angularjs

hichem1987 commented 1 year ago

You need to install @uirouter/angularjs

it is well installed and well present under node_modules folder the error as I said is also intermitent

eddiemonge commented 1 year ago

have you tried using the latest versions?

Also node 10?