Problems with webix.require Webix3.1

I use Webix2.5, I use webix.require to other file.

In main.js

webix.require(“jSFiles/FileOne.js”);
webix.require(“jSFiles/FileTwo.js”);
webix.require(“jSFiles/FileTree.js”);
webix.require(“jSFiles/funOne.js”);
webix.require(“jSFiles/funTwo.js”);

change into Webix 3.1 and webix.require not working.

I read the documentation, indicates that:

-Webix.require() returns promise.
-Webix.require do not recognize full http paths.hs.

I do not know if you mentioned has something to do with my problem or an error on the version.

Thanks

require() executes ajax request, passing url as webix.codebase+string in the first parameter. And by default, webix.codebase = “./”. So, for the webix.require(“jSFiles/FileOne.js”); the path is “./jSFiles/FileOne.js”. You may change webix.codebase if it is needed.

hi, I received help from Twitter (@kozhemak), the solution was:

“require uses async.mode by default. To force the old behavior use webix.require(“jSFiles/files.js”, true)”

thks!