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);
I have a Stenciljs app with Ionic components. Whenever I try to import / use JSONEditor, it says:
TypeError: JSONEditor is not a constructor
How JSON Editor shall be used in my app?