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

428
Vistas
ReactJS/NextJS - npm run build fails - SyntaxError: Unexpected token 'export'

When running "npm run build" I'm getting the following 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 just contains

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

However with npm run build my project works just fine and I can use MUIRichTextEditor.

enter image description here

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

The build error is preventing me from updating the production version. Does anyone know why I'm getting the export error?

about 4 years ago · Juan Pablo Isaza
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