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

Error hard to debug because of minified JS #54555

Open
1 task done
bruno-garcia opened this issue Mar 15, 2024 · 4 comments
Open
1 task done

Error hard to debug because of minified JS #54555

bruno-garcia opened this issue Mar 15, 2024 · 4 comments
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one Pillar: Dev Experience
Milestone

Comments

@bruno-garcia
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The error is caused due to the client browser not supporting WebAssembly, or the version they support not having all features. So not a Blazor bug.

image

I'd like to dig deeper into such errors, but all the JS shipped by Blazor is minified (which makes sense).

Is the sourcemap generated as a result of that minification available anywhere?

Expected Behavior

Be able to do one of:

  1. Download Blazor's sourcemaps for each release
  2. Run webpack or whatever bundler so I can generate sourcemaps

This way I can either ship sourcemaps with my website or upload them to https://sentry.io

Steps To Reproduce

Shared (public) error: https://demo.sentry.io/share/issue/d24373d8406e48e2a3a3aa8725faf297/

Exceptions (if any)

No response

.NET Version

8.0.201

Anything else?

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Mar 15, 2024
@mkArtakMSFT mkArtakMSFT added enhancement This issue represents an ask for new feature or an enhancement to an existing one Pillar: Dev Experience labels Mar 19, 2024
@mkArtakMSFT mkArtakMSFT added this to the Backlog milestone Mar 19, 2024
@mkArtakMSFT
Copy link
Member

@thaystg do you know if there is a tooling support for this already?

@thaystg
Copy link
Member

thaystg commented Mar 19, 2024

@lewing Can you help with this one? I think it's more related to your side then debugger side.

@lewing
Copy link
Member

lewing commented Mar 19, 2024

cc @maraf

@maraf
Copy link
Member

maraf commented Mar 20, 2024

@bruno-garcia We generate and provide source maps for .NET runtime JS files. It's enabled by default for build and you can explicitly enable it for publish with MSBuild property <WasmEmitSourceMap>true</WasmEmitSourceMap>.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one Pillar: Dev Experience
Projects
None yet
Development

No branches or pull requests

5 participants