Skip to content

blazor.web.js missing from publish output #52266

@oliverw

Description

@oliverw

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I have Blazor 8 Web App which runs fine in development. After publishing the app using dotnet publish, I've noticed all interactivity is broken because blazor.web.js is not included in the publish output. What am I missing?

Update: I've checked with a fresh Blazor 8 Web App project created with VS 17.8 RTM and blazor.web.js is also absent from publish output.

Update 2: Even by manually copying over blazor.web.js to the server's deployment folder, I cannot get interactivity to kick in once deployed. In development I can observe dotnet.js being loaded when hitting a page containing interactive components and bootstrapping WASM via blazor.boot.json. In production dotnet.js is not being loaded even though it's been deployed.

image

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

8.0.100

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions