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]: panic during build phase #6868

Closed
gluhovroma opened this issue Jun 20, 2024 · 4 comments
Closed

[Bug]: panic during build phase #6868

gluhovroma opened this issue Jun 20, 2024 · 4 comments
Labels
bug Something isn't working need reproduction

Comments

@gluhovroma
Copy link

System Info

System Info
System:
OS: macOS 14.0
CPU: (10) arm64 Apple M1 Max
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.14.2
npm: 8.5.0

Details

Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message: should print diagnostics: × an error occurred when formatting an argument

Location: crates/rspack_core/src/stats.rs:391

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: _napi_register_module_v1
at
2: _napi_register_module_v1
at
3: _napi_register_module_v1
at
4: _napi_register_module_v1
at
5: _napi_register_module_v1
at
6: _wasmer_vm_imported_memory32_atomic_notify
at
7: _wasmer_vm_imported_memory32_atomic_notify
at
8: _napi_register_module_v1
at
9: _napi_register_module_v1
at
10: _napi_register_module_v1
at

This happens when I connect css like this:

import 'semantic-ui-css/semantic.min.css';
And use CssExtractRspackPlugin as described in the instructions

module: {
   rules: [ 
      {
          test: /\.css$/i,
          use: [rspack.CssExtractRspackPlugin.loader, 'css-loader'],
          type: 'css',
       }
   ]
}

Reproduce link

No response

Reproduce Steps

run rspack

@gluhovroma gluhovroma added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jun 20, 2024
@LingyuCoder
Copy link
Collaborator

Try to create a minimal repro but fail, can you provide one?

@LingyuCoder LingyuCoder added need reproduction and removed pending triage The issue/PR is currently untouched. labels Jun 20, 2024
Copy link
Contributor

Hello @gluhovroma, sorry we can't investigate the problem further without reproduction demo, please provide a repro demo by forking rspack-repro, or provide a minimal GitHub repository by yourself. Issues labeled by need reproduction will be closed if no activities in 14 days.

@h-a-n-a
Copy link
Collaborator

h-a-n-a commented Jun 24, 2024

experiments.css and css extract plugin should not be used together.

module: {
   rules: [ 
      {
          test: /\.css$/i,
          use: [rspack.CssExtractRspackPlugin.loader, 'css-loader'],
-          type: 'css',
       }
   ]
}

Copy link
Contributor

github-actions bot commented Jul 9, 2024

Since the issue was labeled with need reproduction, but no response in 14 days. This issue will be closed. Feel free to comment and reopen it if you have any further questions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need reproduction
Projects
None yet
Development

No branches or pull requests

3 participants