vue-worker
vue-worker copied to clipboard
Uncaught ReferenceError: _ref2 is not defined
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));
}
Stumbled into exact same issue. The code was fine and it worked first, but then it suddenly stopped for some reason
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?