Build Job fails
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
works in vscode, but fails in github workflow. I'm using a basic react app
**To Reproduce**
Steps to reproduce the behavior:
Create and merge a PR
Let the Azure static web app build and deploy job run
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
**Expected behavior**
Build job should succeed
**Device info (if applicable):**
Ubuntu latest
**Additional context**
These are the warn
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 sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
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 svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
I've tried to
1. Manually update the dependencies locally as well as through a workflow file (e.g npm install -g svgo and others)
2. Move React scripts to devdependencies
3. Added overrides
"overrides": { ---results in --> npm ERR! Override for svgo@^3.0.2 conflicts with direct dependency
"svgo": "^3"
}
4. adding react to devDependencies
"devDependencies": {
"@svgr/plugin-svgo": "^6.5.1",
"@svgr/webpack": "^6.5.1",
"react-scripts": "^5.0.1",
"rollup-plugin-terser": "^7.0.2",
"sourcemap-codec": "^1.4.8",
"stable": "^0.1.8",
"svgo": "^3.0.2",
"w3c-hr-time": "^1.0.2"
},
5. pull my hair out and about a million other things. Any help would be appreciated :-)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.