I am using a JS external file (I added it to the project via Project > Add New Code File. If I look in the file system, appStudio put it in my ‘modules’ folder inside the project and added a .js extension. It is the last file listed in the Project Explorer.
The file have several functions. However, when I call one using the function name (eg. setUp() ), the debugger says there is an uncaught reference error (see pictures).
So I tried adding this to the Project Extra Headers property per an answer in the discussion board;
I had an issue with external files not “integrating” into my project when I used the menu to add them. I now drop them onto the project explorer, and then move them up to the beginning of the project, before all forms. It seems to work.