You might need to check your 'util.js' and make sure to export myFunction
from that file. Something like this :
//in util.js
export function myFunction(){
...do something...
}
and then you can imported this function from any other files. And also make sure you have the correct path to 'util.js'