josdejong / josdejong/jsoneditor
How to add jsoneditor to Stenciljs / Ionic app
Open
question
- Dominant language
- JavaScript
- Stars
- 12.3k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
I have a Stenciljs app with Ionic components. Whenever I try to import / use JSONEditor, it says:
```
import * as JSONEditor from 'jsoneditor';
var container = document.getElementById("jsoneditor");
var options = {
mode: 'tree'
};
console.log(JSONEditor)
var editor = new JSONEditor(container, options);
```
**_TypeError: JSONEditor is not a constructor_**
How JSON Editor shall be used in my app?
Contributor guide
Assessment
This issue has not been assessed yet.