BayardRock / WebIntellisense

JavaScript and CSS library for intellisense user interface. Complete with bindings for a textarea, ACE editor, and CodeMirror.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught TypeError: ace.define is not a function

PsyTae opened this issue · comments

I am not using RequireJS, but using the src to load ace and we are loading it in this order in our html.

    <script src="../scripts/aceSrc/ace.js" type="text/javascript" charset="utf-8"></script>
    <script src="../scripts/aceSrc/ext-language_tools.js" type="text/javascript" charset="utf-8"></script>
    <script src="../scripts/aceSrc/ext-modelist.js" type="text/javascript" charset="utf-8"></script>

    <script src="../scripts/webIntellisense/webintellisense.js"></script>
    <script src="../scripts/webIntellisense/webintellisense-ace.js"></script>
    <link href="../styles/webIntellisense/webintellisense.css" rel="stylesheet" />

However right away we get an error
Uncaught TypeError: ace.define is not a function(anonymous function) @ webintellisense-ace.js:1

I checked and in the ace.js file line 49 var define = is present so I am not sure why we are getting this error.

We have a working ACE Editor in the page, and are trying to add the intellisense but have not added in any of the JS yet in to the page to implement webIntellisense.

https://github.com/ajaxorg/ace-builds/issues/78

this was explained in this issue in ace