emt2dev
emt2dev

Reputation: 1

swaCli does not produce error and does not deploy

Attached is the screenshot of the cli. As you can see, the command did not upload to azure, yet did not produce errors. Azure has no records of failed deployment. Does anyone know where to start looking for this?

Screenshot of swa cli

Here's the steps:

  1. I ensured the app worked by building it with npm run build.
  2. swa build
  3. swa deploy using the commands in the screenshot.

I'm expecting to either find errors related to this so I can eventually upload the app to azure static web apps.

Upvotes: 0

Views: 511

Answers (1)

Jahnavi
Jahnavi

Reputation: 7898

swa Cli does not produce error and does not deploy:

It is a very transient that might occur due to some environment reasons. Try and check below points to resolve the issue.

Need to check below:

  • Check config.json file of static web apps again and verify all the settings and dependencies are properly configured.
  • To get more transparent details on the error or deployment stuck issue, use --verbose=silly flag along with the swa deploy command.
  • Check the deployment in Portal to know the status of it whether it is succeeded or created or failed.

I have created a sample static web app configuration and tried to build it withswa build. It worked as expected.

enter image description here

Note: If still the issue persists, clear the cache in your environment and try deployment in another environment or folder path.

Refer common issues related to your conflict.

Upvotes: 1

Related Questions