5629223407
[With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples need to be updated, so the following snippet updated all the examples to a compatible react version. ```bash cd examples/ fd -g 'package.json' | xargs sed -r -i 's/"react": ".*"/"react": "^17.0.2"/ fd -g 'package.json' | xargs sed -r -i 's/"react-dom": ".*"/"react-dom": "^17.0.2"/' # exclude experimental react version git checkout with-reason-relay/package.json ```
21 lines
495 B
JSON
21 lines
495 B
JSON
{
|
|
"name": "with-algolia-react-instantsearch",
|
|
"scripts": {
|
|
"dev": "next",
|
|
"build": "cross-env NODE_ENV=development next build",
|
|
"start": "next start"
|
|
},
|
|
"dependencies": {
|
|
"algoliasearch": "4.3.0",
|
|
"cross-env": "^7.0.2",
|
|
"css-loader": "1.0.0",
|
|
"next": "latest",
|
|
"prop-types": "^15.5.10",
|
|
"qs": "^6.4.0",
|
|
"react": "^17.0.2",
|
|
"react-dom": "^17.0.2",
|
|
"react-instantsearch-dom": "6.6.0",
|
|
"style-loader": "^0.17.0"
|
|
},
|
|
"license": "MIT"
|
|
}
|