Skip to content

An open source alternative to Tableau. Embeddable visual analytic

fix: react-types version resolution

observedobserverec231fa48429
diff --git a/package.json b/package.json
index dbccc81d..364f6330 100644
--- a/package.json
+++ b/package.json
@@ -3,8 +3,7 @@
"version": "0.2.0",
"scripts": {
"dev:front_end": "vite --host",
- "dev:data_service": "npx serve ../rath-client/public -l 8080",
- "dev": "concurrently \"npm run dev:front_end\" \"npm run dev:data_service\"",
+ "dev": "npm run dev:front_end",
"build": "tsc && vite build",
"serve": "vite preview",
"type": "tsc src/lib.ts --declaration --emitDeclarationOnly --jsx react --esModuleInterop --outDir dist"
@@ -52,11 +51,15 @@
},
"devDependencies": {
"@rollup/plugin-typescript": "^8.2.5",
- "@types/react": "^17.0.0",
- "@types/react-dom": "^17.0.0",
+ "@types/react": "^17.x",
+ "@types/react-dom": "^17.x",
"@types/uuid": "^8.3.1",
"@vitejs/plugin-react-refresh": "^1.3.6",
"typescript": "^4.3.2",
"vite": "^3.1.0"
+ },
+ "resolutions": {
+ "@types/react": "^17.x",
+ "@types/react-dom": "^17.x"
}
}
diff --git a/yarn.lock b/yarn.lock
index 17c064d7..66113d4a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -398,7 +398,7 @@
resolved "https://registry.npmmirror.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf"
integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==
-"@types/react-dom@^17.0.0":
+"@types/react-dom@^17.x":
version "17.0.17"
resolved "https://registry.npmmirror.com/@types/react-dom/-/react-dom-17.0.17.tgz#2e3743277a793a96a99f1bf87614598289da68a1"
integrity sha512-VjnqEmqGnasQKV0CWLevqMTXBYG9GbwuE6x3VetERLh0cq2LTptFE73MrQi2S7GkKXCf2GgwItB/melLnxfnsg==
@@ -415,16 +415,7 @@
hoist-non-react-statics "^3.3.0"
redux "^4.0.0"
-"@types/react@*":
- version "18.0.21"
- resolved "https://registry.npmmirror.com/@types/react/-/react-18.0.21.tgz#b8209e9626bb00a34c76f55482697edd2b43cc67"
- integrity sha512-7QUCOxvFgnD5Jk8ZKlUAhVcRj7GuJRjnjjiY/IUBWKgOlnvDvTMLD4RTF7NPyVmbRhNrbomZiOepg7M/2Kj1mA==
- dependencies:
- "@types/prop-types" "*"
- "@types/scheduler" "*"
- csstype "^3.0.2"
-
-"@types/react@^17", "@types/react@^17.0.0":
+"@types/react@*", "@types/react@^17", "@types/react@^17.x":
version "17.0.50"
resolved "https://registry.npmmirror.com/@types/react/-/react-17.0.50.tgz#39abb4f7098f546cfcd6b51207c90c4295ee81fc"
integrity sha512-ZCBHzpDb5skMnc1zFXAXnL3l1FAdi+xZvwxK+PkglMmBrwjpp9nKaWuEvrGnSifCJmBFGxZOOFuwC6KH/s0NuA==
@@ -3020,7 +3011,7 @@ y18n@^5.0.5:
resolved "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==
-yallist@*, yallist@^4.0.0:
+yallist@^4.0.0:
version "4.0.0"
resolved "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==