Skip to content

aspnetcore: missing blazor.web.js #4280

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

Closed
corngood opened this issue Apr 1, 2024 · 1 comment
Closed

aspnetcore: missing blazor.web.js #4280

corngood opened this issue Apr 1, 2024 · 1 comment

Comments

@corngood
Copy link

corngood commented Apr 1, 2024

my build keeps failing due to this:
CSC : error CS1566: Error reading resource '_framework/blazor.web.js' -- 'Could not find a part of the path '/home/janvorli/git/dotnet/src/aspnetcore/src/Components/Web.JS/dist/Release/blazor.web.js'.' [/home/janvorli/git/dotnet/src/aspnetcore/src/Components/Endpoints/src/Microsoft.AspNetCore.Components.Endpoints.csproj] [/home/janvorli/git/dotnet/repo-projects/aspnetcore.proj]

I've tried several times, even with git clean -xdf in between. Any idea what is wrong?

Originally posted by @janvorli in #4007 (comment)

I'm also getting this in 9.0.0-preview.2, where it's preceded by this warning:

src/aspnetcore/src/Components/Endpoints/src/Microsoft.AspNetCore.Components.Endpoints.csproj(67,5): warning : 'src/aspnetcore/src/Components/Endpoints/src/../../Web.JS/dist/Release/blazor.web.js' does not exist. Ensure the JS assets have been build by running 'npm run build' from the repository root. [repo-projects/aspnetcore.proj]

@janvorli, I wanted to ask if you were able to fix this, but it seems to be a bit of-topic in #4007.

@corngood
Copy link
Author

corngood commented Apr 1, 2024

Ah, I see:

warning: Building of NodeJS projects is disabled since node is not detected on Path and no BuildNodeJs or NoBuildNodeJs setting is set explicitly.
warning: Some managed projects depend on NodeJS projects. Building NodeJS is disabled so the managed projects will fallback to using the output from previous builds. The output may not be correct or up to date.

Also based on this I found #3924, so I'm going to close this as a duplicate.

@corngood corngood closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in .NET Source Build Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant