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

Console warning: "TypeError: test is undefined" #131

Open
icosamuel opened this issue Jul 5, 2018 · 0 comments
Open

Console warning: "TypeError: test is undefined" #131

icosamuel opened this issue Jul 5, 2018 · 0 comments

Comments

@icosamuel
Copy link

my specific usage

<div id="editor"></div>
<script>
    let schema = { schema: "json valid" };
    const editor = ace.edit('editor');
    editor.setValue(JSON.stringify(schema, null, 2), 1);
    editor.on('input', () => {
      try {
        schema = JSON.parse(this.editor.getValue());
      } catch (e) {}
    });
</script>

relevant stack trace

TypeError: text is undefined
  Stack trace:
  this.$detectNewLine@webpack-internal:///./node_modules/brace/index.js:7707:13
  this.insert@webpack-internal:///./node_modules/brace/index.js:7779:13
  this.setValue@webpack-internal:///./node_modules/brace/index.js:7687:9
  this.setValue@webpack-internal:///./node_modules/brace/index.js:13109:9
...
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

1 participant