Skip to content
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

Failure to compile #137

Open
sweeneki opened this issue Feb 21, 2024 · 0 comments
Open

Failure to compile #137

sweeneki opened this issue Feb 21, 2024 · 0 comments

Comments

@sweeneki
Copy link

Describe the bug
Failure to compile. Message:

Error: node_modules/ang-jsoneditor/jsoneditor/jsoneditor.component.d.ts:57:87 - error TS2344: Type '{ options: { alias: "options"; required: false; }; debug: { alias: "debug"; required: false; }; data: { alias: "data"; required: false; }; }' does not satisfy the constraint '{ [key: string]: string; }'.
Property '"options"' is incompatible with index signature.
Type '{ alias: "options"; required: false; }' is not assignable to type 'string'.

57 static ɵcmp: i0.ɵɵComponentDeclaration<JsonEditorComponent, "json-editor", never, { "options": { "alias": "options"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "change": "change"; "jsonChange": "jsonChange"; }, never, never, false, never>;

To Reproduce
Serve application after installation.

To Fix
Changed the last line in the jsoneditor.component.d.ts file to:
static ɵcmp: i0.ɵɵComponentDeclaration<JsonEditorComponent, "json-editor", never,
{
"options": "options" ;
"debug": "debug" ;
"data": "data" },
{
"change": "change";
"jsonChange": "jsonChange"; },
never, never, false, never>;
}

Expected behavior
No errors

Console and Error stack trace
If applicable, add screenshots to help explain your problem.
Use debug mode to see in your console the data and options passed to jsoneditor. Copy this and paste in your issue when reporting bugs. Copy the stacktrace as well!

Error: src/app/admin/vertex-json/vertex-json.component.html:30:5 - error NG8002: Can't bind to 'options' since it isn't a known property of 'json-editor'

Additional context
Matched all configurations to the working StackBlitz, but didn't work.

thdang1009 added a commit to thdang1009/mean-ghost-tim-ui that referenced this issue Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant