Skip to content

Commit a23e41b

Browse files
committed
Organize "dependencies" and "devDependencies"
After deleting `.node_modules` and `yarn.lock`, I encountered this issue: react-bootstrap/react-router-bootstrap#314 The issue was resolved by following the instructions in https://stackoverflow.com/questions/71831601/ts2786-component-cannot-be-used-as-a-jsx-component to add "resolutions" to the `package.json` file.
1 parent 0f49440 commit a23e41b

File tree

3 files changed

+1881
-14592
lines changed

3 files changed

+1881
-14592
lines changed

package.json

+71-67
Original file line numberDiff line numberDiff line change
@@ -3,68 +3,25 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@babel/core": "^7.16.0",
7-
"@babel/plugin-syntax-flow": "^7.22.5",
8-
"@babel/plugin-transform-react-jsx": "^7.22.5",
96
"@mdx-js/loader": "^2.3.0",
107
"@mdx-js/react": "^2.3.0",
11-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
128
"@popperjs/core": "^2.11.8",
13-
"@svgr/webpack": "^5.5.0",
14-
"@testing-library/dom": "^9.3.1",
15-
"@testing-library/jest-dom": "^5.16.5",
16-
"@testing-library/react": "^14.0.0",
17-
"@testing-library/user-event": "^14.4.3",
18-
"@types/image-blob-reduce": "^4.1.1",
19-
"@types/jest": "^27.4.0",
20-
"@types/lodash": "^4.14.191",
21-
"@types/node": "^17.0.10",
22-
"@types/pouchdb": "^6.4.0",
23-
"@types/pouchdb-find": "^7.3.3",
24-
"@types/pouchdb-upsert": "^2.2.6",
25-
"@types/react": "^18.2.0",
26-
"@types/react-bootstrap": "^0.32.32",
27-
"@types/react-dom": "^18.2.0",
28-
"babel-jest": "^27.4.2",
29-
"babel-loader": "^8.2.3",
30-
"babel-plugin-named-asset-import": "^0.3.8",
31-
"babel-preset-react-app": "^10.0.1",
329
"bfj": "^7.0.2",
3310
"bootstrap": "^5.3.0",
3411
"browser-image-compression": "^2.0.2",
3512
"browserslist": "^4.18.1",
3613
"camelcase": "^6.2.1",
37-
"case-sensitive-paths-webpack-plugin": "^2.4.0",
38-
"css-loader": "^6.5.1",
39-
"css-minimizer-webpack-plugin": "^3.2.0",
4014
"dotenv": "^10.0.0",
4115
"dotenv-expand": "^5.1.0",
42-
"eslint": "^8.45.0",
43-
"eslint-config-prettier": "^8.8.0",
44-
"eslint-config-react-app": "^7.0.1",
45-
"eslint-config-standard": "^17.1.0",
46-
"eslint-plugin-typescript": "^0.14.0",
47-
"eslint-webpack-plugin": "^3.1.1",
4816
"exifr": "^7.1.3",
49-
"file-loader": "^6.2.0",
5017
"fs-extra": "^10.0.0",
5118
"heic-jpg-exif": "^1.0.0",
5219
"heic2any": "^0.0.4",
53-
"html-webpack-plugin": "^5.5.0",
5420
"identity-obj-proxy": "^3.0.0",
55-
"jest": "^27.4.3",
56-
"jest-resolve": "^27.4.2",
57-
"jest-watch-typeahead": "^1.0.0",
5821
"jsx": "^0.9.89",
5922
"lodash": "^4.17.21",
6023
"markdown-to-jsx": "^7.2.0",
61-
"mini-css-extract-plugin": "^2.4.5",
6224
"pdfjs-dist": "3.11.174",
63-
"postcss": "^8.4.4",
64-
"postcss-flexbugs-fixes": "^5.0.2",
65-
"postcss-loader": "^6.2.1",
66-
"postcss-normalize": "^10.0.1",
67-
"postcss-preset-env": "^7.0.1",
6825
"pouchdb": "^8.0.1",
6926
"pouchdb-find": "^9.0.0",
7027
"pouchdb-upsert": "^2.2.0",
@@ -79,37 +36,15 @@
7936
"react-refresh": "^0.11.0",
8037
"react-router-bootstrap": "^0.26.2",
8138
"react-router-dom": "^6.12.0",
82-
"react-scripts": "^5.0.1",
8339
"react-simple-code-editor": "^0.13.1",
8440
"remark": "^14.0.2",
8541
"remark-gfm": "^3.0.1",
8642
"resolve": "^1.20.0",
8743
"resolve-url-loader": "^4.0.0",
8844
"sass-loader": "^12.3.0",
8945
"semver": "^7.3.5",
90-
"source-map-loader": "^3.0.0",
91-
"style-loader": "^3.3.1",
9246
"tailwindcss": "^3.0.2",
93-
"terser-webpack-plugin": "^5.2.5",
94-
"typescript": "*",
95-
"web-vitals": "^2.1.4",
96-
"webpack": "^5.64.4",
97-
"webpack-dev-server": "^4.6.0",
98-
"webpack-license-plugin": "^4.2.2",
99-
"webpack-manifest-plugin": "^4.0.2",
100-
"workbox-background-sync": "^6.4.2",
101-
"workbox-broadcast-update": "^6.4.2",
102-
"workbox-cacheable-response": "^6.4.2",
103-
"workbox-core": "^6.4.2",
104-
"workbox-expiration": "^6.4.2",
105-
"workbox-google-analytics": "^6.4.2",
106-
"workbox-navigation-preload": "^6.4.2",
107-
"workbox-precaching": "^6.4.2",
108-
"workbox-range-requests": "^6.4.2",
109-
"workbox-routing": "^6.4.2",
110-
"workbox-strategies": "^6.4.2",
111-
"workbox-streams": "^6.4.2",
112-
"workbox-webpack-plugin": "^6.4.1"
47+
"web-vitals": "^2.1.4"
11348
},
11449
"scripts": {
11550
"start": "node scripts/start.js",
@@ -138,11 +73,41 @@
13873
]
13974
},
14075
"devDependencies": {
76+
"@babel/core": "^7.16.0",
14177
"@babel/eslint-parser": "^7.22.9",
14278
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
79+
"@babel/plugin-syntax-flow": "^7.22.5",
80+
"@babel/plugin-transform-react-jsx": "^7.22.5",
81+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
82+
"@svgr/webpack": "^5.5.0",
83+
"@testing-library/dom": "^9.3.1",
84+
"@testing-library/jest-dom": "^5.16.5",
85+
"@testing-library/react": "^14.0.0",
86+
"@testing-library/user-event": "^14.4.3",
87+
"@types/image-blob-reduce": "^4.1.1",
88+
"@types/jest": "^27.4.0",
89+
"@types/lodash": "^4.14.191",
90+
"@types/node": "^17.0.10",
91+
"@types/pouchdb": "^6.4.0",
92+
"@types/pouchdb-find": "^7.3.3",
93+
"@types/pouchdb-upsert": "^2.2.6",
94+
"@types/react": "^18.2.0",
95+
"@types/react-bootstrap": "^0.32.32",
96+
"@types/react-dom": "^18.2.0",
14397
"@types/react-router-bootstrap": "^0.26.0",
14498
"@typescript-eslint/eslint-plugin": "^5.50.0",
14599
"@typescript-eslint/parser": "^5.0.0",
100+
"babel-jest": "^27.4.2",
101+
"babel-loader": "^8.2.3",
102+
"babel-plugin-named-asset-import": "^0.3.8",
103+
"babel-preset-react-app": "^10.0.1",
104+
"case-sensitive-paths-webpack-plugin": "^2.4.0",
105+
"css-loader": "^6.5.1",
106+
"css-minimizer-webpack-plugin": "^3.2.0",
107+
"eslint": "^8.45.0",
108+
"eslint-config-prettier": "^8.8.0",
109+
"eslint-config-react-app": "^7.0.1",
110+
"eslint-config-standard": "^17.1.0",
146111
"eslint-config-standard-with-typescript": "^36.1.0",
147112
"eslint-plugin-import": "^2.25.2",
148113
"eslint-plugin-mdx": "^3.1.5",
@@ -151,8 +116,43 @@
151116
"eslint-plugin-promise": "^6.0.0",
152117
"eslint-plugin-react": "^7.33.0",
153118
"eslint-plugin-react-hooks": "^5.1.0",
119+
"eslint-plugin-typescript": "^0.14.0",
120+
"eslint-webpack-plugin": "^3.1.1",
121+
"file-loader": "^6.2.0",
122+
"html-webpack-plugin": "^5.5.0",
123+
"jest": "^27.4.3",
124+
"jest-resolve": "^27.4.2",
125+
"jest-watch-typeahead": "^1.0.0",
126+
"mini-css-extract-plugin": "^2.4.5",
127+
"postcss": "^8.4.4",
128+
"postcss-flexbugs-fixes": "^5.0.2",
129+
"postcss-loader": "^6.2.1",
130+
"postcss-normalize": "^10.0.1",
131+
"postcss-preset-env": "^7.0.1",
154132
"prettier": "^3.0.0",
155-
"react-dev-utils": "^12.0.1"
133+
"react-dev-utils": "^12.0.1",
134+
"react-scripts": "^5.0.1",
135+
"source-map-loader": "^3.0.0",
136+
"style-loader": "^3.3.1",
137+
"terser-webpack-plugin": "^5.2.5",
138+
"typescript": "*",
139+
"webpack": "^5.64.4",
140+
"webpack-dev-server": "^4.6.0",
141+
"webpack-license-plugin": "^4.2.2",
142+
"webpack-manifest-plugin": "^4.0.2",
143+
"workbox-background-sync": "^6.4.2",
144+
"workbox-broadcast-update": "^6.4.2",
145+
"workbox-cacheable-response": "^6.4.2",
146+
"workbox-core": "^6.4.2",
147+
"workbox-expiration": "^6.4.2",
148+
"workbox-google-analytics": "^6.4.2",
149+
"workbox-navigation-preload": "^6.4.2",
150+
"workbox-precaching": "^6.4.2",
151+
"workbox-range-requests": "^6.4.2",
152+
"workbox-routing": "^6.4.2",
153+
"workbox-strategies": "^6.4.2",
154+
"workbox-streams": "^6.4.2",
155+
"workbox-webpack-plugin": "^6.4.1"
156156
},
157157
"jest": {
158158
"roots": [
@@ -211,5 +211,9 @@
211211
"presets": [
212212
"react-app"
213213
]
214+
},
215+
"resolutions": {
216+
"@types/react": "^18.2.0",
217+
"@types/react-dom": "^18.2.0"
214218
}
215219
}

0 commit comments

Comments
 (0)