diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 2891c16..6763df3 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -15,7 +15,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - - run: npm install --legacy-peer-deps + - run: npm install - run: CI=false npm run build - name: Deploy to server diff --git a/README.md b/README.md index 9ae04bd..3188205 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ In the project directory, you can run: -### `npm install --legacy-peer-deps` +### `npm install` -At least one of the dependencies does not support React 17 officially. +Installs all the required dependencies. ### `npm start` diff --git a/package-lock.json b/package-lock.json index 27a35ea..6c52c36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15356,6 +15356,19 @@ "is-typedarray": "^1.0.0" } }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/unbox-primitive": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", diff --git a/package.json b/package.json index 441f2e3..ab072ea 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,10 @@ "react-scroll": "^1.8.6", "web-vitals": "^2.1.4" }, + "overrides": { + "react": "$react", + "react-dom": "$react-dom" + }, "scripts": { "start": "react-scripts start", "build": "react-scripts build",