Skip to content

CustomElements includes babel.config.json, package.json and tsconfig.json in project #59110

@FreyLuis

Description

@FreyLuis

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

With version 9.0.0 of the NuGet package Microsoft.AspNetCore.Components.CustomElements, 3 config files are being added as Content.

Image
Image

In combination with Microsoft.TypeScript.MSBuild, that leads to the following error when building:

tsc error TS18003: Build:No inputs were found in config file 'C:/Users/luis/.nuget/packages/microsoft.aspnetcore.components.customelements/9.0.0/contentFiles/any/net9.0/js/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. [C:\Users\luis\source\repos\Trumpf\LDM_Editor_SDK\src\EditorSdk.OAppSdk\TL.LDM.EditorSdk.OAppSdk.csproj]

I don't believe, these 3 files should be included as Content.

Expected Behavior

The mentioned files should not be added to Content.

Steps To Reproduce

  • Create a Blazor WebAssembly App
  • Add Microsoft.AspNetCore.Components.CustomElements

Exceptions (if any)

No response

.NET Version

9.0.100

Anything else?

No response

Activity

ghost added
area-blazorIncludes: Blazor, Razor Components
on Nov 22, 2024
added
bugThis issue describes a behavior which is not expected - a bug.
on Nov 22, 2024
added this to the 9.0.x milestone on Nov 22, 2024
Mindstyler

Mindstyler commented on Dec 4, 2024

@Mindstyler

i just ran into the same isue

Aeroverra

Aeroverra commented on Jan 10, 2025

@Aeroverra

Anyone have a solution to this? Im new to typescript and Don't have the time to go down a rabbit hole right now.

Edit: Marking them as none worked.

FreyLuis

FreyLuis commented on Jan 10, 2025

@FreyLuis
Author

@Aeroverra you can remove those config files by adding the following content remove to your csproj file and setting GeneratePathProperty to true for the CustomElements nuget.

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Components.CustomElements" Version="9.0.0" GeneratePathProperty="True" />
    <Content Remove="$(PkgMicrosoft_AspNetCore_Components_CustomElements)\contentFiles\any\net9.0\js\*" />
  </ItemGroup>
AshleyGrant

AshleyGrant commented on Jun 9, 2025

@AshleyGrant
Contributor

I just ran into this issue today. @javiercn without workarounds this Nuget package is broken currently, and the only way I found this issue with the workarounds was coming to the aspnetcore repo and searching the issues prior to filing a new issue. Is this going to be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Aeroverra@javiercn@AshleyGrant@Mindstyler@FreyLuis

        Issue actions

          CustomElements includes babel.config.json, package.json and tsconfig.json in project · Issue #59110 · dotnet/aspnetcore