Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

276
Vistas
Module parse failed: Unexpected token (110:28)

I have this error when I write a block scope function.

Failed to compile

./src/components/PlaceDetails/PlaceDetails.jsx 110:28 Module parse failed: Unexpected token (110:28) You may need an appropriate loader to handle this file type. | columnNumber: 21 | } }, place.ranking)), place?.cuisine?.map(function (_ref2) { | var name = _ref2.name; | return /#PURE/React.createElement(Chip, {

this is my function: I use Travel Advisor api, 'place' is data from this api. cuisine its array.

                {place?.cuisine?.map(({name})=> (
                <Chip key ={name} size='small' label={name} className='chip' />
            ))}
about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

It seems you are using the babel/react scripts versions that are not supporting Optional chaining (?). Make sure that you have the following versions installed.

  1. Create React App ≥ 3.3.0
  2. Babel ≥ 7.8.0
  3. TypeScript ≥ 3.7
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda