-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Angular 12 causing errors during build #56
Comments
Hello, I've got a similar issue to #56Just upgraded to Angular 12, include angular/cli 12. After upgrading getting the following errors during build:
Versions
|
No response since yesterday. |
Try assigning the mantainer or other collaborator on your issue, and add a label please. |
I Solved it by writing the component that inject the schema markup. the component code were took from this library plus an extra feature I did that minify the json schema on production for better performance :),json-ld.component.ts: import { ChangeDetectionStrategy, HostBinding, Component, Input, OnInit } from '@angular/core'; @component({ getSafeHTML(value: {}) {
} json-ld.module.ts: @NgModule({ After Implementing this you just need to switch references And update the module import. Good luck to you all. |
i'm having same problem, not even upgrade or anything, error just appears, and I just removed this wrapper @ngx-lite/ngx-json-ld to use directly npm install ngx-json-ld, and it works now (still on version 10 for me). |
Same issue why no fix yet ? |
Hi,
Just upgraded to Angular 12, include angular/cli 12.
json-ld library worked for me when using angular 9.
After upgrading getting the following errors during build.
Error: node_modules/@ngx-lite/json-ld/ngx-json-ld.component.d.ts:10:21 - error TS2694: Namespace '"XXX/node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDefWithMeta'.
10 static ɵcmp: i0.ɵɵComponentDefWithMeta<NgxJsonLdComponent, "ngx-json-ld", never, { "json": "json"; }, {}, never, never>;
~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/@ngx-lite/json-ld/ngx-json-ld.module.d.ts:5:21 - error TS2694: Namespace '"XXX/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDefWithMeta'.
5 static ɵmod: i0.ɵɵNgModuleDefWithMeta<NgxJsonLdModule, [typeof i1.NgxJsonLdComponent], [typeof i2.CommonModule], [typeof i1.NgxJsonLdComponent]>;
~~~~~~~~~~~~~~~~~~~~~
**Versions
The text was updated successfully, but these errors were encountered: