Skip to content

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

Open

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

Activity

  1. wawyed commented on Apr 13, 2023

    @wawyed
    Member

    You need to install @uirouter/angularjs

  2. hichem1987 commented on Apr 13, 2023

    @hichem1987
    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

  3. eddiemonge commented on Apr 13, 2023

    @eddiemonge
    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

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