Madhur Maurya
Madhur Maurya

Reputation: 1070

Error TypeError: i28.ɵd is not a constructor in angular 5

I get the follow error while running the angular application (hitting application url in browser) in AOT mode using ng serve --aot command. Please not that I get no error while building application in aot mode. I get this error in browser when i hit application url.

`ERROR TypeError: i28.ɵd is not a constructor
    at eval (app.module.ngfactory.js:94)
    at _callFactory (core.js:10955)
    at _createProviderInstance$1 (core.js:10897)
    at resolveNgModuleDep (core.js:10879)
    at _callFactory (core.js:10947)
    at _createProviderInstance$1 (core.js:10897)
    at resolveNgModuleDep (core.js:10879)
    at _createClass (core.js:10920)
    at _createProviderInstance$1 (core.js:10894)
    at resolveNgModuleDep (core.js:10879)`

Any solutions for this problem will be helpful.

Upvotes: 0

Views: 777

Answers (1)

OClyde
OClyde

Reputation: 1076

Generally this is most likely an import issue, the app tries to create an instance of a provider that is not actually available, probably due to a missing import.

Upvotes: 1

Related Questions