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

437
Vistas
Switching to Rollup 2 Error: default' is not exported

I'm switching from Rollup 1.27 to 2.48.

I had this dependency communicated in rollup.config.js

alias({
    Paths: {
        'uikit-util': './node_modules/uikit/src/js/util',
    },
    Extensions: ['js', 'json']
}),

so Rollup knows what to do when this occurs

import UIkit from 'uikit';
import { $, on, ajax, hasClass, removeClass, addClass } from 'uikit-util';

At the moment i get this error message:

[!] Error: 'default' is not exported by node_modules\uikit\dist\js\uikit.js, imported by src\js\components\compo_a.js
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
src\js\components\savedsearches.js (1:7)
1: import UIkit from 'uikit';

I tried using resolve and namedExports in the rollup config, but looks like that's not working.

over 4 years ago · Santiago Trujillo
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