-
Notifications
You must be signed in to change notification settings - Fork 58
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
Build and Deploy fails #1125
Comments
You have some npm install issues |
Thanks, but I doubt it is the lock file. I've removed it and will try running the tutorial again. I really think that it is related to Python 2 not being found. I saw a similar issue from the MS Docs repo that also mentions a problem with Python 2. I suspect this made it into this version as well. |
I ran it again and this time forked the initial commit to a new test branch with no modifications made. It encountered the same issues as before in the Build and Deploy job. I suppose this means that since the tutorial was written, it now no longer works. |
You still have npm install issues. You can build separately from the azure action if you want |
The logs OP provided are no longer available, but getting error when building my STA as well. Any new input on this issue? I'm trying to move to using Node 18 from Node 14, as it is a requirement by Gatsby, but am now stuck with this issue. EDIT: Oh, looks like I've already filed an issue about this, but no response in 5 months ❤️ #1118
|
@jpalo I almost forgot about this issue. Thanks for commenting. Yeah, the last time I researched this I found some StackOverflow post that mentioned the build error could be due to a dependency chain issue caused by older packages from Node that are no longer available inside the current Linux container images in Azure (which causes the build to fail). Your best bet is to see if you could download an Azure endorsed Linux container image from Docker hub and build your code locally. Find and fix any dependency issues if the build fails by updating your package.json accordingly. Then update your remote repo and try again. If it still fails, you may have to research how to use an older community gallery image and try building your code against that. Try Ubuntu 16.04-LTS and see if Gatsby will work on it (and hope the dependency chain is still intact). |
Hmm, but it seems to be a python2 requiremend from node-gyp. |
Hi, npm ERR! code ERESOLVE npm ERR! A complete log of this run can be found in: ---End of Oryx build logs--- |
Describe the bug
The build and deploy step fails when running the ci: add Azure Static Web Apps workflow file. From the ci logs in my repo, it appears to fail when trying to call python2. Looks like the Docker image Azure is trying to run it on does not have it?
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For it to deploy.
Screenshots
n/a
Device info (if applicable):
Additional context
I tried to run it again using github actions online (to make sure it was not my editor) and it still failed.
The text was updated successfully, but these errors were encountered: