Skip to content

[AspireE2E] When running an aspire react starter project, the localhost page can’t be found after open the server's URL link #13559

@EmilyFeng97

Description

@EmilyFeng97

REGRESSION INFO: New templates in Aspire 13.1

INSTALL STEPS

  1. Clean machine: Windows x64 23h2
  2. Install SDK 10.0.101
  3. Add feed
  4. Install Aspire template - version: 13.1.0
    dotnet new install Aspire.ProjectTemplates::13.1.0 --force
  5. install node.js

REPRO STEPS

  1. Create Aspire Starter App (ASP.NET Core/React) with following command:
    dotnet new aspire-ts-cs-starter -o AspireJSApp
  2. Go to the project folder and run the app with dotnet run
  3. Open the Dashboard URL in browser
  4. Open the URL link of server

Note:

  1. This issue does not repro on Aspire Starter and Aspire Python Starter App.

ACTUAL
This localhost page can’t be found.
Image

expect
The page should display API service is running. Navigate to /api/weatherforecast to see sample data. If I click the link, the page will navigate to https://localhost:xxxx/api/weatherforecas page.
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions