ng-dynamic-component
ng-dynamic-component copied to clipboard
Error: Internal error: unknown identifier undefined
Hello @gund ,
Thanks for this awesome library,
But i am having a problem in importing this as part of my Angular 9 Project. I explored the issues and i used npm i [email protected] to avoid the pinned issue. But yet still, I am quite stuck with this error during ng serve of my app.
Can you please try helping me out here ?
Hi, unfortunately I cannot help without an minimal online reproduction example. Could you create one please?
Hey @gund ,
Thanks for the reply. Sure, Let me please try creating a stackblitz and revert back
Hey @gund ,
Thanks for the reply. Sure, Let me please try creating a stackblitz and revert back
Do you have Ivy build enabled in your tsConfig file?
@konuch I do not think it matters as the library can be compiled by the NGCC to Ivy version.
Same issue. Also using the no-barrels. Problem only occurs when using ng build not on ng serve. We use @nrwl.
ERROR in Error: Internal error: unknown identifier undefined
at Object.importExpr$1 [as importExpr] (/node_modules/@angular/compiler/bundles/compiler.umd.js:27248:27)
at tokenExpr (/node_modules/@angular/compiler/bundles/compiler.umd.js:23809:43)
at providerDef (/node_modules/@angular/compiler/bundles/compiler.umd.js:23735:24)
at ViewBuilder._visitProviderOrDirective (/node_modules/@angular/compiler/bundles/compiler.umd.js:25246:22)
at ViewBuilder._visitProvider (/node_modules/@angular/compiler/bundles/compiler.umd.js:25208:40)
at /node_modules/@angular/compiler/bundles/compiler.umd.js:25070:27
at Array.forEach (
@gund I provided a reproduction here https://github.com/gund/ng-dynamic-component/issues/408 We are also using @nrwl but I doubt that's the cause because I think ng build bypasses nrwl build commands.
@L-X-T do you have ivy disabled? We do and it seems like with Ivy enabled there isn't an issue.
I'm closing this issue as it's outdated. If you want to reopen the discussion please feel free to open a new issue.