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]: sourcemaps being generated after 1.0.1-rc.2 through 1.0.1 (latest) do not work with Sentry to decode stack traces #3433

Open
canopus1io opened this issue Sep 10, 2024 · 6 comments
Assignees
Labels
🐞 bug Something isn't working need reproduction

Comments

@canopus1io
Copy link

canopus1io commented Sep 10, 2024

Version

  System:
    OS: Linux 6.1 Amazon Linux 2023
    CPU: (2) x64 Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
    Memory: 5.97 GB / 7.63 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 127.0.6533.88
  npmPackages:
    @rsbuild/core: 1.0.1 => 1.0.1
    @rsbuild/plugin-css-minimizer: ^1.0.2 => 1.0.2
    @rsbuild/plugin-mdx: ^1.0.2 => 1.0.2
    @rsbuild/plugin-node-polyfill: ^1.0.4 => 1.0.4
    @rsbuild/plugin-react: 1.0.1 => 1.0.1



key versions:
@rsbuild/[email protected]
@rspack/[email protected]
@rspack/[email protected]

@sentry/[email protected]
@sentry/[email protected]

Details

Screenshot 2024-09-09 at 9 20 30 PM
image
stack traces do no resolve correctly

I first discovered this issue with:
@rsbuild/[email protected]

I confirmed it works fine on:
@rsbuild/[email protected]
image

Reproduce link

not yet available

Reproduce Steps

not yet available

@canopus1io canopus1io added the 🐞 bug Something isn't working label Sep 10, 2024
Copy link
Contributor

Hello @canopus1io. Please provide a reproduction repository or online demo. For background, see Why reproductions are required. Thanks ❤️

@chenjiahan
Copy link
Member

Maybe related to web-infra-dev/rspack#7647

Can you provide more information for debugging?

@SyMind
Copy link
Member

SyMind commented Sep 11, 2024

@canopus1io Can you check the correctness of the generated source map? Check where the source map is problematic.

@gitim
Copy link

gitim commented Sep 16, 2024

I have the same issue after web-infra-dev/rspack#7647. Source map genereated by [email protected] is about ~28MB, by [email protected] the source map is incomplete and only ~5MB.

@SyMind
Copy link
Member

SyMind commented Sep 18, 2024

@gitim Please provide the a demo to reproduce the issue.

@yuzhva
Copy link

yuzhva commented Sep 18, 2024

Hey hi, guys 👋

Would like to refer for this comment:
web-infra-dev/rspack#7914 (comment)

It seems that the issue is in optimization configurations.

Because when I'm disabling it or replacing SwcJsMinimizerRspackPlugin with TerserPlugin - the source-maps are generated properly.

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

5 participants