josdejong / josdejong/jsoneditor

How to add jsoneditor to Stenciljs / Ionic app

Open
#1,124 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.