Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed: webpack5 worker loader #379

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ObservedObserver
Copy link
Member

@ObservedObserver ObservedObserver commented Jul 6, 2023

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

@vercel
Copy link

vercel bot commented Jul 6, 2023

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

@ObservedObserver ObservedObserver linked an issue Jul 6, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error while installing Rath in Windows
2 participants