Editor doesn't load, if there is an element with id="monaco"
hesch opened this issue · 0 comments
hesch commented
If you follow the instructions from the README to setup a new project and add an <div id="monaco"></div>
anywhere in your HTML, the editor won't load. This is caused by this line:
which checks, if monaco is available. The problem is, that if there is an element with the id monaco window.monaco
will return that element (instead of undefined). I have no idea if this is even fixable, but perhaps there is a better way to check if monaco is available?