Skip to content

Failed to run azd deploy for image-gallery sample due to frontend build error #1661

Description

Describe the issue:
azd deploy fails for sample image-gallery with the error: src/main.tsx(4,8): error TS2882: Cannot find module or type declarations for side-effect import of './App.css'. ERROR: failed to build: process "/bin/sh -c npm run build" did not complete successfully: exit code: 2, as follow:
Image

Repro Steps:

  1. Run git clone https://github.com/dotnet/aspire-samples.git.
  2. Run azd auth login.
  3. Run cd samples/image-gallery.
  4. Run azd init.
  5. Run azd up.

Environment:

  • Branch: main
  • Azd version: azd version 1.25.3-daily.6367899 (commit 5415d38ec116421c280491764d5ff559e6cd0f7f) (daily)
  • Samples: image-gallery.

Expected behavior:
azd deploy can successfully run for sample image-gallery.

Rick Winter (@RickWinter) for notification.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions