-
Notifications
You must be signed in to change notification settings - Fork 13
Can't bind to 'options' since it isn't a known property of 'json-editor'. #13
Comments
Having the same problem here. @manuelcugliari , have you solved this anyhow? |
Considering the following message: 2. If 'json-editor' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. I did this: import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; and added to 'schemas' on my @NgModule schemas: [ CUSTOM_ELEMENTS_SCHEMA ], But then I got another error. WorkflowDesignerComponent.html:12 ERROR ReferenceError: JSONEditor is not defined Trying to solve that one now :) One at a time... |
A better aproach: Install jsoneditor via NPM.
Install types for jsoneditor
and then, in your component: import JSONEditor from 'jsoneditor'; and use it like this: let jsonEditor = new JSONEditor(container, { mode: 'view' }, json); Hope this helps. Just got it working. |
@thomaspessato - Can you please share your html code as well? How are you using typings? |
I am having this same issues currently, Is this package still maintained |
It is not. Use typings instead |
@manuelcugliari did you import NgJsonEditorModule into your root app.module.ts, and your store.module.ts? |
core.es5.js:1084 ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'options' since it isn't a known property of 'json-editor'.
The text was updated successfully, but these errors were encountered: