Reputation: 1121
I am trying to convert an Angular 8 app to Angular 9. While running ngcc I see that i get:
getInternalNameOfClass() called on a non-ES5 class: expected AwesomeComponent to have an inner class declaration
AwesomeComponent is a component from our shared library.
Is there a fix for this error?
Upvotes: 2
Views: 4567
Reputation: 3434
Try changing compilerOptions
of your tsconfig.json
from es5
to es2015
Upvotes: 1
Reputation: 357
I make extensive use of shared components in my project. Perhaps one difference is that I import modules and not components directly.
If you want to take a look at my setup running on Angular9, here's my GitHub repo: https://github.com/ikemtz/AngularMonoRepo/blob/master/src/libs/imng-auth0-oidc/src/lib/auth0-oidc.module.ts
Upvotes: 0