vue-worker icon indicating copy to clipboard operation
vue-worker copied to clipboard

Uncaught ReferenceError: _ref2 is not defined

Open LorhanSohaky opened this issue 4 years ago • 2 comments


submitFlag() {
      const { flag, token } = this.$data;
      const info = this.info;
      const local = { owner: "user", repository: "repo" };
      const upstream = {
        owner: config.owner,
        repository: config.submissionsRepo
      };

      this.$worker
        .run(
          async (flag, info, token, local, upstream) => {
            const NIZKCTF = require("../services/nizkctf");
            const nizkctf = new NIZKCTF(token, local, upstream);

            return await nizkctf.submitFlag(flag, info);
          },
          [flag, info, token, local, upstream]
        )
        .then(r => console.log(r))
        .catch(r => console.log("Error", r));
    }

LorhanSohaky avatar Mar 02 '20 01:03 LorhanSohaky

Stumbled into exact same issue. The code was fine and it worked first, but then it suddenly stopped for some reason

ThomasFindlay avatar Apr 11 '20 14:04 ThomasFindlay

Stumbled into exact same issue. The code was fine and it worked first, but then it suddenly stopped for some reason

me too. Is it settled now?

Dinert avatar Apr 19 '23 03:04 Dinert