Skip to content

Container builds fails after upgrade to Microsoft.TypeScript.MSBuild 5.2.2Β #55886

Open
@davhdavh

Description

@davhdavh

πŸ”Ž Search Terms

Microsoft.TypeScript.MSBuild error MSB6006: "/usr/bin/nodejs" exited with code 1

πŸ•— Version & Regression Information

  • This is a crash
  • This changed between versions 5.0.4 and 5.2.2

⏯ Playground Link

No response

πŸ’» Code

FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
        nodejs \
        npm \
    && rm -rf /var/lib/apt/lists/*
COPY ["*.csproj", "package*", "tsconfig.json", "."]
RUN --mount=type=cache,id=npm,target=/root/.npm --mount=type=cache,id=nuget,target=/root/.nuget/packages dotnet restore
RUN --mount=type=cache,id=npm,target=/root/.npm --mount=type=cache,id=nuget,target=/root/.nuget/packages npm install

πŸ™ Actual behavior

[xxx build 8/10] RUN --mount=type=cache,id=npm,target=/root/.npm --mount=type=cache,id=nuget,target=/root/.nuget/packages dotnet build:
10.86 MSBuild version 17.7.3+8ec440e68 for .NET
12.15 Determining projects to restore...
12.47 All projects are up-to-date for restore.
13.19 /root/.nuget/packages/microsoft.typescript.msbuild/5.2.2/tools/Microsoft.TypeScript.targets(485,5): error MSB6006: "/usr/bin/nodejs" exited with code 1. [/src/xxx.csproj]
13.21
13.21 Build FAILED.
13.21
13.21 /root/.nuget/packages/microsoft.typescript.msbuild/5.2.2/tools/Microsoft.TypeScript.targets(485,5): error MSB6006: "/usr/bin/nodejs" exited with code 1. [/src/xxx.csproj]
13.21 0 Warning(s)
13.21 1 Error(s)
13.21
13.21 Time Elapsed 00:00:02.13

πŸ™‚ Expected behavior

build success

Additional information about the issue

No response

Metadata

Metadata

Assignees

Labels

Needs InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions