Skip to content

More than one JS module files were found for the razor component #63065

@vsfeedback

Description

@vsfeedback

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


[severity:It's more difficult to complete my work] [regression] [worked-in:17.12?]
The following error randomly occurs multiple times during compilation of a large Blazor Web Assembly application.

More than one JS module files were found for the razor component 'Components\xxxx\Tools\ScrollToTopControl.razor'. Each razor component must have at most a single associated JS module file.
C:\Dev\xxxx\src\Apps\Apps.Toolkit\Client\Components\xxxx\Tools\ScrollToTopControl.razor.js
C:\dev\xxxx\src\Apps\Apps.Toolkit\Client\Components\xxxx\Tools\ScrollToTopControl.razor.js

I note that the 2 filenames mentioned are the same path, the only difference is the case of the "DEV" vs "dev" so it appears the file check is case sensitive.

Cleaning the solution sometimes fixes it. Switch between pre-release Visual Studio and release version sometimes clears the issue. No pattern to the fix was noted.


Original Comments

Feedback Bot on 5/30/2025, 07:07 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