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.