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

426
Views
ReactJS/NextJS - Falla la compilación de ejecución de npm - Error de sintaxis: 'exportación' de token inesperado

Cuando ejecuto "npm run build", aparece el siguiente error:

 > Build error occurred C:\Users\...\project\nextjs-frontend\node_modules\mui-rte\index.js:1 export {default} from './dist/MUIRichTextEditor' ^^^^^^ SyntaxError: Unexpected token 'export'

node_modules/mui-rte/index.js solo contiene

 export {default} from './dist/MUIRichTextEditor'

Sin embargo, con npm run build, mi proyecto funciona bien y puedo usar MUIRichTextEditor.

ingrese la descripción de la imagen aquí

 <MUIRichTextEditor label="Type something here..." onSave={save} onChange={handleEditorChange} defaultValue={defaultDescValue} inlineToolbar={false} controls={[ "title", "bold", "italic", "underline", "numberList", "bulletList", "quote", ]} />

El error de compilación me impide actualizar la versión de producción. ¿Alguien sabe por qué me sale el error de exportación?

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!