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

427
Views
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
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!