Skip to content

JS modules fail to load for some Razor components (BLAZOR106) #63069

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:I'm unable to use this version] [regression] [worked-in:17.13.7 to 17.14.2]
After upgrading .NET runtime to 9.0.3 we get the error when building project. When we pin .NET version to 9.0.203 it works fine. The problem seems to be the .stories in the filename - when removed, the builds succeeds so something must have changed in between versions on how the JS files are discovered. ColorPalettePage.stories.razor definitely exists.

2>...\src\Demo\Stories\Examples\ColorPalettePage.stories.razor.js : error BLAZOR106: The JS module file '...\src\Demo\Stories\Examples\ColorPalettePage.stories.razor.js' was defined but no associated razor component or view was found for it.
2>Done building project "Demo.csproj" -- FAILED.


Original Comments

Feedback Bot on 5/28/2025, 10:40 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Author: Migration Bot 🤖The issue was created by a issue mover bot. The author may not be the actual author.area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions