Declaring and importing my function in main.wasp works fine, importing it in the frontend like so
import { processCsvData } from "wasp/server/jobs";
import { processCsvData } from "wasp/server/jobs";
seems to work fine as well, but when I try to invoke it in anothed function I have the whole frontend crashes throwing the said error but nothing in my terminal?