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

UIViewNgUpgrade downgradedModule not specified #542

Closed dsavevski closed 2 years ago

dsavevski commented 3 years ago

I am working on a application where we are following the upgrade for performance guide. We decided to try out this hybrid router since we are using angularjs ui router. Routing to angularjs routes works fine but routing to a new angular 2+ component produces the following error. Btw we downgrade multiple modules in the app as hinted by the error.

Unhandled JavaScript error: Error: Error while instantiating component 'UIViewNgUpgrade': 'downgradedModule' not specified. This application contains more than one downgraded Angular module, thus you need to always specify 'downgradedModule' when downgrading components and injectables.

From what I could find I think the problem is here on line 229 where no module is specified.

Is there any easy way around this or do you plan fixing this soon?

wawyed commented 2 years ago

Need more info. Please reopen with stackblitz.