Sanity React version support & Parsing error #3861
Unanswered
guga-goncalves
asked this question in
Sanity Studio Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
guys, I need help in an error. I tried to start my sanity project and this error appeared on my terminal:
Error: Sanity currently only supports react@^16.2. Installed version: 17.0.2. at C:/Users/gusta/OneDrive/Área de Trabalho/JavaScript Master/shareme_backend/node_modules/@sanity/core/lib/util/checkReactCompatibility.js:35:13 at Array.forEach (<anonymous>) at module.exports (C:/Users/gusta/OneDrive/Área de Trabalho/JavaScript Master/shareme_backend/node_modules/@sanity/core/lib/util/checkReactCompatibility.js:22:26) at C:/Users/gusta/OneDrive/Área de Trabalho/JavaScript Master/shareme_backend/node_modules/@sanity/core/lib/actions/start/startAction.js:51:42 at Generator.next (<anonymous>) at asyncGeneratorStep (C:/Users/gusta/OneDrive/Área de Trabalho/JavaScript Master/shareme_backend/node_modules/@sanity/core/lib/actions/start/startAction.js:26:103) at _next (C:/Users/gusta/OneDrive/Área de Trabalho/JavaScript Master/shareme_backend/node_modules/@sanity/core/lib/actions/start/startAction.js:28:194) at C:/Users/gusta/OneDrive/Área de Trabalho/JavaScript Master/shareme_backend/node_modules/@sanity/core/lib/actions/start/startAction.js:28:364 at new Promise (<anonymous>) at C:/Users/gusta/OneDrive/Área de Trabalho/JavaScript Master/shareme_backend/node_modules/@sanity/core/lib/actions/start/startAction.js:28:97
Before this, I was having this another error message when I was creating my schemas:
Parsing error: Cannot find module '@babel/preset-env
For this error, I found on StackOverflow that you can make a
.babelrc
in the root directory and change the common.eslintrc
which is:{ "extends": "@sanity/eslint-config-studio" }
to this:
{ "extends": ["next/babel"] }
Then, it was suspected that my project will be working normally, but when I try to run it, the terminal error message appears. How can I solve this problem? Did I need to install an oldest version of React to run my sanity project? If yes, how can I make it?
Beta Was this translation helpful? Give feedback.
All reactions