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

[Bug]: When using a worker with lazyCompilation enabled, a compilation error occurs. #7962

Open
wendy0512 opened this issue Sep 24, 2024 · 0 comments
Assignees

Comments

@wendy0512
Copy link

Version

System:
    OS: Windows 10 10.0.19042
    CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11500 @ 2.70GHz
    Memory: 12.17 GB / 31.71 GB
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (127.0.2651.74)  
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @rsbuild/core: ^1.0.4 => 1.0.4 
    @rsbuild/plugin-less: ^1.0.1 => 1.0.1 
    @rsbuild/plugin-react: ^1.0.2 => 1.0.2 
    @rsbuild/plugin-styled-components: ^1.0.1 => 1.0.1

Details

1.Create a worker example, as shown in the reproduction repository.
2.Enable dev: { lazyCompilation: true }, and open the page link. The following error appears in the compiler console:
image
3.If dev: { lazyCompilation: true } is disabled, the page runs normally, as shown below:
image

Reproduce link

https://github.com/wendy0512/rsbuild-worker-repro

Reproduce Steps

  1. npm i
  2. npm start
@9aoy 9aoy transferred this issue from web-infra-dev/rsbuild Sep 24, 2024
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

No branches or pull requests

2 participants