Critical dependency: the request of a dependency is an expression

I am getting same error as here https://github.com/ionic-team/ionic/issues/12285 . Any help?