Skip to content

Commit a701d05

Browse files
committed
Fix react-dom/client issue and update workflow
1 parent df69bce commit a701d05

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
node-version: 18
2020

2121
- name: Install dependencies
22-
run: npm install --legacy-peer-deps
22+
run: |
23+
npm install react@18 react-dom@18 --legacy-peer-deps
24+
npm install
2325
2426
- name: Build the project
2527
env:
@@ -31,4 +33,4 @@ jobs:
3133
uses: peaceiris/actions-gh-pages@v3
3234
with:
3335
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: ./build
36+
publish_dir: ./build

package-lock.json

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"@testing-library/user-event": "^13.5.0",
99
"axios": "^1.6.7",
1010
"lodash.times": "^4.3.2",
11+
"react": "^18.3.1",
1112
"react-datepicker": "^6.1.0",
13+
"react-dom": "^18.3.1",
1214
"react-marquee-slider": "^1.1.5",
1315
"react-scripts": "5.0.1",
1416
"react-ticker": "^1.3.2",
@@ -47,4 +49,4 @@
4749
"gh-pages": "^6.3.0"
4850
},
4951
"homepage": "https://rollendxavier.github.io/crypto-portfolio-tracker-react"
50-
}
52+
}

0 commit comments

Comments
 (0)