Azure / static-web-apps-cli

Azure Static Web Apps CLI ✨
https://aka.ms/swa/cli-local-development
MIT License
584 stars 111 forks source link

The provided project name "undefined" was not found. #726

Open lostmsu opened 11 months ago

lostmsu commented 11 months ago

Are you accessing the CLI from the default port :4280 ?

Make sure you are accessing the URL printed in the console when running swa start!

Describe the bug When I try to deploy my wwwroot, I get the above error after refusing to create a new app.

√ Would you like to create a new Azure Static Web Apps project? ... no
✖ The provided project name "undefined" was not found.

To Reproduce

  1. Go to any folder with index.html
  2. Run swa without parameters
  3. Walk through until it asks you to create a project
  4. Refuse a new project

Expected behavior A meaningful error message (tell what parameter to set next time) or a request to enter the name of the existing project.

Desktop (please complete the following information):

craigomatic commented 10 months ago

I hit this today also, as a workaround you can use swa deploy --app-name <your app name>.

Docs here: https://azure.github.io/static-web-apps-cli/docs/cli/swa-deploy/