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

Error when initializing JSONEditor #1

Open
thomaspessato opened this issue Jul 21, 2017 · 1 comment
Open

Error when initializing JSONEditor #1

thomaspessato opened this issue Jul 21, 2017 · 1 comment

Comments

@thomaspessato
Copy link

this.instance = new JSONEditor(this.host.nativeElement, newConfig);

This line throws me the following error:

ERROR ReferenceError: JSONEditor is not defined
at JSONEditorComponent.webpackJsonp.../../../../ngx-jsoneditor/index.js.JSONEditorComponent.editorInit

@sguilly
Copy link

sguilly commented Jan 2, 2018

you could try to add in your .angular-cli.json :

"apps": [{

...,

"styles": [
"../node_modules/jsoneditor/dist/jsoneditor.min.css"
],

"scripts": [
"../node_modules/jsoneditor/dist/jsoneditor.min.js"
],

...

}]

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

2 participants