thlorenz / brace

📔 browserify compatible version of the ace editor.
http://thlorenz.github.io/brace/
MIT License
1.06k stars 303 forks source link

Find dialog box broken. #118

Closed maged closed 6 years ago

maged commented 6 years ago

When using ctrl-f, this is printed to the console:

Uncaught SyntaxError: Unexpected token <
index.js:12225 Uncaught TypeError: Cannot read property 'Search' of undefined
    at index.js:12225
    at index.js:4167
    at Array.forEach (<anonymous>)
    at index.js:4166
    at _acequire (index.js:88)
    at req (index.js:138)
    at afterLoad (index.js:4162)
    at HTMLScriptElement.s.onload.s.onreadystatechange (index.js:3808)

Here's a minimal React app configuration causing this:

import React from "react";

export default class Brace extends React.Component {

    constructor(props) {
        super(props);
        this.ace = require('brace');
    }

    componentDidMount() {
        const editor = this.ace.edit('my-editor');
    }

    render() {
      return (
          <div id="my-editor" style={{height: '1000px', width: '1000px'}} />
      );
    }
}
maged commented 6 years ago

Ctrl-F binding is also not working on http://thlorenz.com/brace/

maged commented 6 years ago

This error message is printed to the console:

GET http://thlorenz.com/brace/ext-searchbox.js net::ERR_ABORTED

Looks like this resource should be moved into the repo?

maged commented 6 years ago

Duplicate of #58