Rath icon indicating copy to clipboard operation
Rath copied to clipboard

fixed: webpack5 worker loader

Open ObservedObserver opened this issue 2 years ago • 1 comments

This is a PR made by @Shirllyuan internally, but havn't tested on win devices.

  • Operating Platform: Windows 10 Professional 21H1 64-bit operating system, x64-based processor
  • Processor: Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz 2.40 GHz
  • Runtime Environment: Nodejs v16.10.0

After running "yarn workspace rath-client start", the above error occurs.

solutions

Determined to be a web worker loading issue, the current webpack version is:

webpack: ^5.64.4

According to the official documentation, in webpack 5, another method has replaced the worker-loader loading method, which caused this problem. The main modification method is as follows: Change the current worker loading method, as shown in the following image: image

changed to

image

config of worker loader can be deleted: image

ObservedObserver avatar Jul 06 '23 01:07 ObservedObserver

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
rath ✅ Ready (Inspect) Visit Preview Jul 6, 2023 1:32am

vercel[bot] avatar Jul 06 '23 01:07 vercel[bot]