Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hichem1987 opened this issue Apr 13, 2023 · 3 comments

Comments

@hichem1987
Copy link

hichem1987 commented Apr 13, 2023

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
Copy link
Member

wawyed commented Apr 13, 2023

You need to install @uirouter/angularjs

@hichem1987
Copy link
Author

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
Copy link
Member

have you tried using the latest versions?

Also node 10?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants