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

When trying to just render without creating tree the error Uncaught ReferenceError: createTree is not defined #20

Closed
Starz26 opened this issue Oct 17, 2023 · 1 comment

Comments

@Starz26
Copy link

Starz26 commented Oct 17, 2023

Code uses an array of json data and it works fine if I use .render() but when trying

const tree = jsonview.renderJSON(data, Sizzle('#resultsDiv')[0]);

I get the error:

Uncaught ReferenceError: createTree is not defined
at Module.k (jsonview.js:1:7164)

and when looking as the JS there seems to be no function named createTree()

@pgrabovets
Copy link
Owner

Thanks dude. It has been fixed by last PR.

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