Azure / Azure/static-web-apps

Build and Deploy a react solution from GitHub

Open
#1,188 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Hello, in Build and Deploy a react solution from GitHub I get this error: **Oryx has failed to build the solution**. The error is very generic and I cannot correct it. In localhost with npm run build I not have a problems.

Please your prompt help

This is the log:

```
Run Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ***
repo_token: ***
action: upload
app_location: /
output_location: build
/usr/bin/docker run --name ed866eddb01a9e[2](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:2)70f4a54b5ce41b111e77fd6_0f175e --label ed866e --workdir /github/workspace --rm -e "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN" -e "INPUT_REPO_TOKEN" -e "INPUT_ACTION" -e "INPUT_APP_LOCATION" -e "INPUT_API_LOCATION" -e "INPUT_OUTPUT_LOCATION" -e "INPUT_API_BUILD_COMMAND" -e "INPUT_APP_ARTIFACT_LOCATION" -e "INPUT_APP_BUILD_COMMAND" -e "INPUT_ROUTES_LOCATION" -e "INPUT_SKIP_APP_BUILD" -e "INPUT_CONFIG_FILE_LOCATION" -e "INPUT_SKIP_API_BUILD" -e "INPUT_PRODUCTION_BRANCH" -e "INPUT_DEPLOYMENT_ENVIRONMENT" -e "INPUT_IS_STATIC_EXPORT" -e "INPUT_DATA_API_LOCATION" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/appsatelite/appsatelite":"/github/workspace" ed866e:ddb01a9e270f4a54b5ce41b111e77fd6
DeploymentId: faa4dd72-611f-4841-8d7a-d6a1ad4065fc

App Directory Location: '/' was found.
Looking for event info
Starting to build app with Oryx
Azure Static Web Apps utilizes Oryx to build both static applications and Azure Functions. You can find more details on Oryx here: https://github.com/microsoft/Oryx
---Oryx build logs---

Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.202[3](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:3)0501.1, Commit: 5851337[4](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:4)[5](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:5)25ab2977af[6](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:6)8fc5b3c344d32858d8af, ReleaseTagName: 20230501.1

Build Operation ID: cc28412e43866546
OS Type : bullseye
Image Type : jamstack

Detecting platforms...
Detected following platforms:
nodejs: 18.16.0
Version '18.16.0' of platform 'nodejs' is not installed. Generating script to install it...
Detected the following frameworks: React

Source directory : /github/workspace
Destination directory: /bin/staticsites/faa4dd[7](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:7)2-611f-4[8](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:9)41-8d7a-d6a1ad4065fc-swa-oryx/app

Installing common platform dependencies...
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [245 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [14.8 kB]
Fetched 8651 kB in 1s (5[9](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:10)77 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
libpq-dev libpq5 libssl-dev libssl1.1 libwebp6 linux-libc-dev openssl
7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 6425 kB of archives.
After this operation, 8192 B disk space will be freed.
Get:1 http://deb.debian.org/debian-security bullseye-security/main amd64 libssl-dev amd64 1.1.1n-0+deb11u5 [1815 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security/main amd64 libssl1.1 amd64 1.1.1n-0+deb11u5 [1559 kB]
Get:3 http://deb.debian.org/debian-security bullseye-security/main amd64 libpq-dev amd64 13.11-0+deb11u1 [140 kB]
Get:4 http://deb.debian.org/debian-security bullseye-security/main amd64 libpq5 amd64 13.11-0+deb11u1 [180 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 libwebp6 amd64 0.6.1-2.1+deb11u1 [258 kB]
Get:6 http://deb.debian.org/debian-security bullseye-security/main amd64 linux-libc-dev amd64 5.[10](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:11).179-1 [1618 kB]
Get:7 http://deb.debian.org/debian-security bullseye-security/main amd64 openssl amd64 1.1.1n-0+deb[11](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:12)u5 [854 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 6425 kB in 0s (104 MB/s)
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 20487 files and directories currently installed.)
Preparing to unpack .../libssl-dev_1.1.1n-0+deb11u5_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1n-0+deb11u5) over (1.1.1n-0+deb11u4) ...
Preparing to unpack .../libssl1.1_1.1.1n-0+deb11u5_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1n-0+deb11u5) over (1.1.1n-0+deb11u4) ...
Setting up libssl1.1:amd64 (1.1.1n-0+deb11u5) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 20487 files and directories currently installed.)
Preparing to unpack .../libpq-dev_13.11-0+deb11u1_amd64.deb ...
Unpacking libpq-dev (13.11-0+deb11u1) over (13.10-0+deb11u1) ...
Preparing to unpack .../libpq5_13.11-0+deb11u1_amd64.deb ...
Unpacking libpq5:amd64 (13.11-0+deb11u1) over (13.10-0+deb11u1) ...
Preparing to unpack .../libwebp6_0.6.1-2.1+deb11u1_amd64.deb ...
Unpacking libwebp6:amd64 (0.6.1-2.1+deb11u1) over (0.6.1-2.1) ...
Preparing to unpack .../linux-libc-dev_5.10.179-1_amd64.deb ...
Unpacking linux-libc-dev:amd64 (5.10.179-1) over (5.10.178-3) ...
Preparing to unpack .../openssl_1.1.1n-0+deb11u5_amd64.deb ...
Unpacking openssl (1.1.1n-0+deb11u5) over (1.1.1n-0+deb11u4) ...
Setting up libpq5:amd64 (13.11-0+deb11u1) ...
Setting up linux-libc-dev:amd64 (5.10.179-1) ...
Setting up libpq-dev (13.11-0+deb11u1) ...
Setting up libssl-dev:amd64 (1.1.1n-0+deb11u5) ...
Setting up libwebp6:amd64 (0.6.1-2.1+deb11u1) ...
Setting up openssl (1.1.1n-0+deb11u5) ...
Processing triggers for libc-bin (2.31-13+deb11u6) ...
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.30.2-1+deb11u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Downloading and extracting 'nodejs' version '18.16.0' to '/opt/nodejs/18.16.0'...
Detected image debian flavor: bullseye.
Downloaded in 0 sec(s).
Verifying checksum...
Extracting contents...
performing sha5[12](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:13) checksum for: nodejs...
Done in 2 sec(s).

Removing existing manifest file
Creating directory for command manifest file if it does not exist
Creating a manifest file...
Node Build Command Manifest file created.

Using Node version:
v18.16.0

Using Npm version:
9.5.1

Running 'npm install'...

npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.

added 1572 packages, and audited 1573 packages in 27s

245 packages are looking for funding
run `npm fund` for details

6 high severity vulnerabilities

To address all issues (including breaking changes), run:
npm audit fix --force

Run `npm audit` for details.

Running 'npm run build'...

> appsate@0.1.0 build
> react-scripts build

Creating an optimized production build...

Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.

Failed to compile.

[eslint]
src/App.tsx
Line 2:8: 'logo' is defined but never used @typescript-eslint/no-unused-vars
Line 4:10: 'Button' is defined but never used @typescript-eslint/no-unused-vars
Line 4:18: 'Container' is defined but never used @typescript-eslint/no-unused-vars
Line 5:10: 'NavBar' is defined but never used @typescript-eslint/no-unused-vars
Line 6:9: 'BrowserRouter' is defined but never used @typescript-eslint/no-unused-vars
Line 7:10: 'AppRouter' is defined but never used @typescript-eslint/no-unused-vars

src/components/NavBar.tsx
Line 8:10: 'Box' is defined but never used @typescript-eslint/no-unused-vars
Line 8:15: 'Theme' is defined but never used @typescript-eslint/no-unused-vars
Line 8:22: 'createStyles' is defined but never used @typescript-eslint/no-unused-vars
Line 8:36: 'makeStyles' is defined but never used @typescript-eslint/no-unused-vars

src/components/PageLayout.tsx
Line 1:8: 'Typography' is defined but never used @typescript-eslint/no-unused-vars

src/components/SignInButton.tsx
Line 4:8: 'MenuItem' is defined but never used @typescript-eslint/no-unused-vars
Line 5:8: 'Menu' is defined but never used @typescript-eslint/no-unused-vars

src/index.tsx
Line 6:10: 'ThemeConfig' is defined but never used @typescript-eslint/no-unused-vars

src/pages/home/index.tsx
Line 2:15: 'Button' is defined but never used @typescript-eslint/no-unused-vars
Line 2:23: 'Container' is defined but never used @typescript-eslint/no-unused-vars
Line 3:10: 'Image' is defined but never used @typescript-eslint/no-unused-vars

src/pages/table_renta/index.tsx
Line 1:17: 'useEffect' is defined but never used @typescript-eslint/no-unused-vars
Line 10:3: 'Stack' is defined but never used @typescript-eslint/no-unused-vars
Line [14](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:15):3: 'Autocomplete' is defined but never used @typescript-eslint/no-unused-vars
Line 26:10: 'ThemeConfig' is defined but never used @typescript-eslint/no-unused-vars
Line 28:3: 'Page' is defined but never used @typescript-eslint/no-unused-vars
Line 29:3: 'Text' is defined but never used @typescript-eslint/no-unused-vars
Line 30:3: 'View' is defined but never used @typescript-eslint/no-unused-vars
Line 31:3: 'Document' is defined but never used @typescript-eslint/no-unused-vars
Line 32:3: 'StyleSheet' is defined but never used @typescript-eslint/no-unused-vars
Line 33:3: 'PDFViewer' is defined but never used @typescript-eslint/no-unused-vars
Line 35:8: 'ReactPDF' is defined but never used @typescript-eslint/no-unused-vars
Line 37:10: 'Console' is defined but never used @typescript-eslint/no-unused-vars
Line 38:10: 'AutoModelo' is defined but never used @typescript-eslint/no-unused-vars
Line 51:11: 'docHeight' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 172:46: Unexpected string concatenation of literals no-useless-concat
Line 251:8: 'listaAccType' is defined but never used @typescript-eslint/no-unused-vars
Line 263:10: 'listaFormasPagoData' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 263:31: 'setListaFormasPagoData' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 296:10: 'listadoData' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 296:23: 'setListadoData' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 318:9: 'dataInv' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 358:9: 'StyledTableCell' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 368:9: 'StyledTableRow' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 524:10: 'data3' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 524:17: 'setData3' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 559:10: 'rows' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 559:[16](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:17): 'setRows' is assigned a value but never used @typescript-eslint/no-unused-vars
Line [57](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:58)0:9: 'cancelSearch' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 5[77](https://github.com/pablofernandez0/appsatelite/actions/runs/5146158221/jobs/9264801666#step:4:78):6: React Hook React.useEffect has a missing dependency: 'getvTablaRentaModelo'. Either include it or remove the dependency array react-hooks/exhaustive-deps

src/styles/theme.ts
Line 2:10: 'red' is defined but never used @typescript-eslint/no-unused-vars

---End of Oryx build logs---
Oryx has failed to build the solution.

For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
Exiting
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.