importing function on a click

Hey legends,
I have a simple function as of right now that just does a print statement to the console, which is located in a different file from the webix object. Here is what I mean:

say I have function print:
function print(){console.log(“me”)}
in file 1. This has the necessary module export statements and what not. In file 2 it has your button webix object:
{view:“button”, click: print}
again this has the import statement needed for it to reference the function in file 1. Now this does not work (does not print "me:). However if I move the function from file 1 to file 2. It works just fine (“me” is now in the console). I don’t know if this is an issue with JS or webix in general.

Thanks

Hi fkolev

can you post a sample snippet

for example:
https://webix.com/snippet/f380b754

Regards
Deepak

Hi deepak,
Thanks for getting in touch with me. There is good news and bad news. Bad news is that there is no way for me to send you a snippet of it, it is a multi file program so that uses node, so I cannot snippet it (at least to my knowledge). Good news however is that the issue is resolve, by putting the export statement into a brand new file.

Thanks,
fkolev