alewin / useWorker

⚛️ useWorker() - A React Hook for Blocking-Free Background Tasks
https://useworker.js.org/
MIT License
2.97k stars 101 forks source link

Uncaught ReferenceError: _components_common_Upload…alog__WEBPACK_IMPORTED_MODULE_14__ is not defined #140

Open tristaamne opened 1 year ago

tristaamne commented 1 year ago

Sample code:

const onRunCompress = async (uploadOption: UploadOptions) => { if (waitingImages.length === 0) return;

const imageList = [];

for (let i = 0; i < waitingImages.length; i++) {
  imageList.push(waitingImages[i]);
}

setIsSubmit(true);
arraySpliter(imageList, 10).forEach(async e => {
  try {
    **const compressedPack = await compressWorker(uploadOption, e);**
    console.log('compressedPack: ', compressedPack);
  } catch (e) {
    console.log(e);
  }
});

};

It's return ErrorEvent with this message: "Uncaught ReferenceError: _components_common_UploadOptionDialog__WEBPACK_IMPORTED_MODULE_14__ is not defined"

Can someone help me with this?

ghost commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

jpwallace22 commented 10 months ago

This is unmaintained. I tried contacting the author and got no reply. I created a new package based on a fork here. It should have your issues corrected as well as some extra features.

Rushclin commented 8 months ago

Same problem

Arima666 commented 6 months ago

Same problem