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

Error: MODULE_NOT_FOUND when execute azd up. #1

Closed
zedy-wj opened this issue Jul 9, 2024 · 6 comments
Closed

Error: MODULE_NOT_FOUND when execute azd up. #1

zedy-wj opened this issue Jul 9, 2024 · 6 comments

Comments

@zedy-wj
Copy link

zedy-wj commented Jul 9, 2024

Describe the issue:
Run azd up and the process of package will fail as below:
image

Repro Steps:

  1. Open the template with codespace.
  2. Install the Azure Develop CLI.
  3. azd auth login
  4. azd init
  5. azd up

Expected Behavior:

  1. Execute azd up command can package, provision and deploy resources successfully.
  2. Since this project uses containerapp when deployed using azd, additional tool: docker is required when running locally, please add it to Prerequisites.

@ryanninodizon for notification.

@ryanninodizon
Copy link
Owner

@zedy-wj thank you so much for your feedback.

@zedy-wj
Copy link
Author

zedy-wj commented Jul 10, 2024

@ryanninodizon - The above two points look good to me!

But after the deployment is complete, when I click on the frontend endpoint, the web looks as follow:
image

This means that it was deployed successfully, but there is actually no content.

I checked your azure.yaml file and the content is as follows when deploying the frontend:

    frontend-angular:
        project: frontend-angular
        host: containerapp
        language: ts
        dist: dist/frontend-angular

I didn't find a similar path in template: dist/frontend-angular. So I tried to run the command: ng build under the frontend-angular folder.(I'm not sure if this is the right way to do it. If extra steps are required here, please configure the relevant hooks to handle it. We don't want to require extra manual steps when using azd deployment.)

However, after I run ng build, the folder that appears looks like this.
image

@ryanninodizon
Copy link
Owner

@zedy-wj thank you so much for your quick feedback. Dockerfile is now updated to resolve some config issue to deploy the angular app properly. Please see the screnshots of my testings. I hope everything will work on your side now.

Thank you again and have a nice day.

docker-build-and-run
azd-execution
deployed-to-azure
created-azure-resouces

@zedy-wj
Copy link
Author

zedy-wj commented Jul 12, 2024

@ryanninodizon - Sorry for the delay. Due to some issues with the appinsights service, I am unable to deploy your template successfully. We will test it again as soon as it is back to normal. You don't need to do anything at this time, just wait for the test to pass.

@zedy-wj
Copy link
Author

zedy-wj commented Jul 12, 2024

Deployed successfully. Closed as completed.

@zedy-wj zedy-wj closed this as completed Jul 12, 2024
@ryanninodizon
Copy link
Owner

Deployed successfully. Closed as completed.

Thank you so much for taking time testing this. Have a nice day!

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

No branches or pull requests

2 participants