Skip to content

Commit 286ee49

Browse files
author
perlinson
committed
Fix dependency conflicts in GitHub Actions
🔧 Resolve ERESOLVE errors: - Update history version to ^4.7.2 for connected-react-router compatibility - Add --legacy-peer-deps flag to all npm install commands - Update all workflow files to use legacy peer deps 📦 Dependencies fixed: - history: ^5.3.0 -> ^4.7.2 (compatible with connected-react-router@6.9.0) - Add --legacy-peer-deps to handle peer dependency conflicts 🚀 Workflow updates: - ci.yml: Add --legacy-peer-deps - ci-simple.yml: Add --legacy-peer-deps - npm-publish.yml: Add --legacy-peer-deps
1 parent 7f47749 commit 286ee49

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci-simple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
echo "Installing dependencies..."
28-
npm install --no-package-lock
28+
npm install --legacy-peer-deps
2929
echo "Dependencies installed successfully!"
3030
3131
- name: List files

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
cache: 'npm'
2525

2626
- name: Install dependencies
27-
run: npm install
27+
run: npm install --legacy-peer-deps
2828

2929
- name: Bootstrap packages
3030
run: npx lerna bootstrap --no-ci

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
scope: '@perlinson'
2424

2525
- name: Install dependencies
26-
run: npm install
26+
run: npm install --legacy-peer-deps
2727

2828
- name: Bootstrap packages
2929
run: npx lerna bootstrap --no-ci

packages/modernx/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"@types/isomorphic-fetch": "^0.0.36",
3535
"@types/react-redux": "^7.1.0",
3636
"@types/react-router-dom": "^5.3.0",
37-
"connected-react-router": "6.9.0",
37+
"connected-react-router": "^6.9.0",
3838
"global": "^4.4.0",
39-
"history": "^5.3.0",
39+
"history": "^4.7.2",
4040
"invariant": "^2.2.4",
4141
"isomorphic-fetch": "^3.0.0",
4242
"modernx-core": "*",

0 commit comments

Comments
 (0)