Skip to content

Reduce error level of blazor.web.js does not exist errors #57149

@captainsafia

Description

@captainsafia

When building a fresh copy of the repo, I get errors about the Debug builds of the blazor.web.js file not being found because I have not run npm ci && npm run build on the repo. The message indicates that the check-in copy of the file will be used as a fallback.

/Users/captainsafia/git/aspnetcore/57112/src/Components/Endpoints/src/Microsoft.AspNetCore.Components.Endpoints.csproj(72,5): error : '../../Web.JS/dist/Debug/blazor.web.js' does not exist. Falling back to checked-in copy.

Because of our warn-as-errors configuration, this warning manifests as an error that breaks the build.

Can we add an exemption for this error to avoid erroneously warning on projects that don't need debug builds of blazor.web.js?

cc: @javiercn @wtgodbe since I'm not sure what the current status of the compiled JS scripts is

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor Componentsarea-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions