From 02270f67c14cd76a5ed2fd344c2d809d5d4a4606 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 27 Nov 2023 17:57:53 +0000 Subject: [PATCH] Update package.json for React 18 Had a few issues when trying to build, so this addition may not be as simple as updating the peerDeps ``` code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: react-qr-reader@3.0.0-beta-1 npm ERR! Found: @typescript-eslint/eslint-plugin@4.33.0 npm ERR! node_modules/@typescript-eslint/eslint-plugin npm ERR! dev @typescript-eslint/eslint-plugin@"^4.1.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @typescript-eslint/eslint-plugin@"2.x" from eslint-config-react-app@5.2.1 npm ERR! node_modules/eslint-config-react-app npm ERR! dev eslint-config-react-app@"^5.2.1" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! For a full report see: npm ERR! /Users/me/.npm/_logs/2023-11-27T17_49_44_163Z-eresolve-report.txt ``` --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 599cee6..20675a6 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,8 @@ }, "homepage": "https://github.com/react-qr-reader/react-qr-reader#readme", "peerDependencies": { - "react": "^16.8.0 || ^17.0.0", - "react-dom": "^16.8.0 || ^17.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { "@zxing/browser": "0.0.7",