hi-base32 icon indicating copy to clipboard operation
hi-base32 copied to clipboard

Rollup: Missing Export: 'encode' is not exported

Open drwpow opened this issue 6 years ago • 0 comments

I’m working on a project using Rollup, and getting this compile error:

[ ERROR ]  Rollup: Missing Export: src/utils/new-id.js:1:9
           'encode' is not exported by node_modules/hi-base32/src/base32.js

      L1:  import { encode } from 'hi-base32';

I see src/base32.js is an IIFC so that may be what’s giving it trouble.

Any chance we could export an ESM version alongside the main package, say, via pika/pack or something?

drwpow avatar Apr 22 '19 05:04 drwpow