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]: Loading css chunk index failed when use magic comments #4664

Closed
9aoy opened this issue Nov 16, 2023 · 1 comment · Fixed by #4795
Closed

[Bug]: Loading css chunk index failed when use magic comments #4664

9aoy opened this issue Nov 16, 2023 · 1 comment · Fixed by #4795
Assignees
Labels
bug Something isn't working rsbuild rsbuild related team The issue/pr is created by the member of Rspack. urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority)

Comments

@9aoy
Copy link
Collaborator

9aoy commented Nov 16, 2023

System Info

System:
OS: macOS 12.5.1
CPU: (10) arm64 Apple M1 Pro
Memory: 128.56 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.20.2 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.19.4 - /usr/local/bin/npm
pnpm: 7.29.1 - /usr/local/bin/pnpm
Browsers:
Chrome: 119.0.6045.123
Safari: 15.6.1
npmPackages:
@rspack/cli: latest => 0.3.13

Details

I have an async chunk named 'index', and the config as following.

  1. I wish it can be output into /dist/async/index.xxx.js. but it merged into /dist/index.xxx.js
  2. When I run build and preview, I get a 'Loading css chunk index failed ' error
image

image

image

Reproduce link

https://github.com/9aoy/rspack-issue-reproduce/tree/main/webpack-chunk-name

Reproduce Steps

  1. cd webpack-chunk-name && pnpm i
  2. pnpm build
  3. pnpm preview
@9aoy 9aoy added bug Something isn't working pending triage The issue/PR is currently untouched. labels Nov 16, 2023
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Nov 16, 2023
@9aoy 9aoy added urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority) rsbuild rsbuild related labels Nov 16, 2023
@h-a-n-a h-a-n-a removed the pending triage The issue/PR is currently untouched. label Nov 16, 2023
@bvanjoi
Copy link
Collaborator

bvanjoi commented Nov 28, 2023

related to #4318

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rsbuild rsbuild related team The issue/pr is created by the member of Rspack. urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants