You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 12, 2021. It is now read-only.
When the mnid object imported from the dependency I get undefined.
import mnid, {decode} from 'mnid'
console.log(mnid)
console.log(decode)
*console output*
undefined
ƒ decode(encoded) {
var data = _buffer.Buffer.from(base58.decode(encoded));
var netLength = data.length - 24;
var version = data.slice(0, 1);
var network = data.slice(1, netLength);
var addre…
I presume this is just a Webpack/ES6 import bug for bundling (personally I don't feel digging in)? To be safe would it make sense to add export default object exporting the functions?
I've tried to use mnid.decode and it logs undefined too. I tried to add export default, but it didn't solve the problem.
I used Truffle uPort boilerplate.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When the mnid object imported from the dependency I get undefined.
I presume this is just a Webpack/ES6 import bug for bundling (personally I don't feel digging in)? To be safe would it make sense to add
export default
object exporting the functions?The text was updated successfully, but these errors were encountered: