Skip to content

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

@hichem1987

Description

@hichem1987

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions