ReferenceError: Can't find variable: JSONEditor
See original GitHub issue- django-json-widget version: django-json-widget==0.2.0
- Django version: Django==2.2.3
- Python version: Python 3.7.3
- Operating System: Ubuntu
Added the app in INSTALLED_APPS Added the widget in the form If i refresh the admin page, i get
[Error] ReferenceError: Can't find variable: JSONEditor
(anonymous function) (change:208)
Global Code (change:211)
[Error] ReferenceError: Can't find variable: JSONEditor
(anonymous function) (change:231)
Global Code (change:234)
var editor = new JSONEditor(container, options);
var json = {"a": "b"};
editor.set(json);
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7
Top Results From Across the Web
ReferenceError:Can't find variable:weatherCondition
I get the error "ReferenceError:Can't find variable:weatherCondition".And if I take only temperature variable I get the same error ...
Read more >ReactNativeJS: ReferenceError: Can't find variable: error #1004
Describe the bug Using transform-remove-console triggers ReactNativeJS: ReferenceError: Can't find variable: error only on production build ...
Read more >Swagger UI tutorial | Documenting APIs - Idratherbewriting.com
Opened the error console and there is a complaint about "ReferenceError: Can't find variable: JSONEditor" which I think is stopping ...
Read more >ReferenceError: Can't find variable: asdf : r/reactnative - Reddit
It doesn't like it. I'm trying to use two state variables. edit: this.setState({currentWord: this.state.asdf}).
Read more >@json-editor/json-editor | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using django-json-widget==1.0.1 Django==3.0.3 and Python 3.8.2
I still get the issue ReferenceError: JSONEditor is not defined. The above solution of creating a custom widget did not work for me.
I ofcourse added the app in INSTALLED_APPS and the widget to the form ala
widgets = {'configuration': CustomJSONEditorWidget}
I had to add:
To the top of the form.
Adding the django-json-widget to the admin interface does work without any adjustments. Does anyone have a fix that lets you use the normally included jsoneditor files in forms?
As for now, I managed to fix it with this: