Error: "[name] is not exported by [module]"
Occasionally you will see an error message like this:
'foo' is not exported by bar.js (imported by baz.js)
Import declarations must have corresponding export declarations in the imported module. For example, if you have import a from './a.js'
in a module, and a.js doesn't have an export default
declaration, or import {foo} from './b.js'
, and b.js doesn't export foo
, Rollup cannot bundle the code.
This error frequently occurs with CommonJS modules converted by rollup-plugin-commonjs, which makes a reasonable attempt to generate named exports from the CommonJS code but won'