-
Notifications
You must be signed in to change notification settings - Fork 30
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
JS error after clicking on edit button #13
Comments
yes indeed, it is relative to "ace" library, I did not check it well until now, you can see code here https://github.com/darul75/ng-prettyjson/blob/gh-pages/javascripts/ng-prettyjson.js#L78 editor.getSession().setMode("ace/mode/json"); Then I guess they use requirejs to load all stuff but I can not check it now. Let me know if you find, ace solution must be there http://ace.c9.io/#nav=embedding |
There are two ways to solve this issue:
|
Thx @alberskib for providing such details, I will apply and document it when back home. |
Also worth noting, you can include just the core
|
Hey!
First of all, thanks for great lib!
When you open JS console and click on edit button toy will notice error:
Uncaught ReferenceError: define is not defined
which comes frommode-json.js
.You are able to notice it even in demo.
Just download repo,
bower install
and try out.If you need more info how to reproduce the problem, please let me know.
Thanks!
The text was updated successfully, but these errors were encountered: