When I remove the import line, all works fine (except that it doesn't find the imported functions, of course). But when I take the import in, it says "Uncaught ReferenceError: myFunction is not defined".
import io from 'socket.io-client';
function myFunction(name) {
setTimeout(function() {
mydel(name)
}, 2000);
print(name);
sendOrder(name);
}
(I took the rest of the code out)
Am I doing some syntax wrong? Couldn't find the error