Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

617
Views
SyntaxError: la compatibilidad con la sintaxis experimental 'jsx' no está habilitada actualmente

Este error ocurre cuando intento probar mi código nativo de React con Jest

El código de error sugiere los siguientes pasos, y probé ambas sugerencias en vano.

"Agregue @babel/preset-react ( https://git.io/JfeDR ) a la sección 'presets' de su configuración de Babel para habilitar la transformación. Si quiere dejarlo como está, agregue @babel/plugin-syntax -jsx ( https://git.io/vb4yA ) a la sección 'complementos' para habilitar el análisis".

Aquí están mis archivos de configuración:

 //babel.config.js module.exports = function(api) { api.cache(true); return { presets: ['babel-preset-expo','@babel/preset-env','@babel/preset-react'], plugins: ['react-native-reanimated/plugin','@babel/plugin-syntax-jsx'] }; }; //.babelrc { "plugins": [ "module:react-native-dotenv", "@babel/plugin-syntax-jsx" ], "presets": [ "@babel/preset-env", "@babel/preset-react" ] } //package.json "dependencies": { ... "react": "17.0.1", "react-native": "^0.64.3", ... }, "devDependencies": { "@babel/core": "^7.12.9", "@babel/plugin-syntax-jsx": "^7.16.7", "@babel/preset-env": "^7.16.11", "@babel/preset-react": "^7.16.7", "@redux-devtools/core": "^3.11.0", "@testing-library/react-native": "^9.1.0", "@types/react-native": "~0.64.12", "babel-jest": "^27.5.1", "jest": "^26.6.3", "mockdate": "^3.0.5", "react-native-debugger": "^1.1.0", "react-test-renderer": "^18.0.0", "redux-devtools-extension": "^2.13.9", "remote-redux-devtools": "^0.5.16", "typescript": "~4.3.5" },
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!