Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An incorrect webpage is opened after debugging the "nextjs-basic-api" project #840

Open
v-xinda opened this issue Jun 20, 2023 · 2 comments
Assignees
Labels
Milestone

Comments

@v-xinda
Copy link

v-xinda commented Jun 20, 2023

OS: Win10
Build Version: 20230618.1
Regression: Not a regression

Repro Steps:

  1. Open the nextjs-basic-api project in VS Code.
  2. Run npm install in TERMINAL window.
  3. Navigate to "Run and Debug" view -> Select "Azure Static Web Apps…" in the dropdown list -> Select "SWA: Run nextjs-basic-api" -> Debug.
  4. Check whether a correct webpage is opened.

Expect:
A correct webpage is opened.

Actual:
An incorrect webpage is opened.
image

More Info:

  1. This issue also reproduces for the vue-basic-api, angular-basic-api, svelte-basic-api and angular-basic-dotnet projects.
  2. This issue doesn't reproduce for the ReactSite project.
  3. No webpage opens after debugging the angular-basic projects.
  4. After clicking "Check the proxy and the firewall" need to open the "Advanced settings" of the Chrome, but there is no "Advanced settings" for the Chrome 114.0.5735.134.
@v-xinda v-xinda added the AT-CTI Created by CTI team label Jun 20, 2023
@v-xinda v-xinda changed the title Open an incorrect webpage after debugging the "nextjs-basic-api" project An incorrect webpage is opened after debugging the "nextjs-basic-api" project Jun 20, 2023
@alexweininger alexweininger self-assigned this Jul 7, 2023
@alexweininger alexweininger added this to the 0.12.0 milestone Jul 7, 2023
@alexweininger
Copy link
Member

I believe this is being caused by Azure/static-web-apps-cli#663. When using Node.js 18 the SWA CLI throws an error when trying to run swa start. Works fine in Node.js 16.

@v-xinda, what version of Node.js do you have installed?

@v-xinda
Copy link
Author

v-xinda commented Jul 7, 2023

@alexweininger Install Node.js on my machine.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants