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

273
Views
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 answers
Answer question

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 Report
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!