Skip to content

export 'UIROUTER_ROOT_MODULE' was not found in '@uirouter/angular' #434

@elielia

Description

@elielia

Hi there,

I upgraded my Angular app to version 9 with Ivy. After that, my ng2 components won't load any more. I received this error #374 so as mentioned there upgraded to angular-hybrid 10.0.0 and added the required devDependencies.

But then I get the following error when launching the app:
ERROR in ./node_modules/@uirouter/angular-hybrid/__ivy_ngcc__/fesm2015/uirouter-angular-hybrid.js 146:33-54 "export 'UIROUTER_MODULE_TOKEN' was not found in '@uirouter/angular'

my package.json:

"dependencies": {
"@angular/animations": "9.1.9",
"@angular/cdk": "9.2.4",
"@angular/common": "9.1.9",
"@angular/compiler": "9.1.9",
"@angular/core": "9.1.9",
"@angular/forms": "9.1.9",
"@angular/material": "9.2.4",
"@angular/router": "9.1.9",
"@angular/platform-browser": "9.1.9",
"@angular/platform-browser-dynamic": "9.1.9",
"@angular/upgrade": "9.1.9",
"@uirouter/angular-hybrid": "10.0.0",
.....
},
"devDependencies": {
"@uirouter/angular": "^6.0.2",
"@uirouter/angularjs": "^1.0.26",
"@uirouter/core": "^6.0.5",
"@uirouter/rx": "^0.6.5"
......
}

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