WaspW
Wasp13mo ago
fustuk.

Custom Job ReferenceError: process is not defined at config.ts:41:20

job processCsvData {
  executor: PgBoss,
  perform: {
    fn: import { processCsvData } from "@src/client/operations"
  },
  entities: [User]
}

Declaring and importing my function in main.wasp works fine, importing it in the frontend like so 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?
try {
      const res = await processCsvData.submit({
        csvData,
        emailColumnIndex,
      });
    } catch (error) {
      console.error("Error invoking Lambda:", error);
    }

Any help would be appretiated
Was this page helpful?