Skip to content

uint8arrays import style is making oddsdk unusable in starbord #576

Description

@gotjoshua

Summary

when loading oddsdk, uint8arrays tries to use multiformats/basics in bases.js

bases.js:42 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'bases')
    at bases.js:42:15

https://starboard.gg/gotjoshua/oddsdk-fission-esm-broken-nYw9yF3

Problem

something with packaging and bundling is not working, maybe its upstream in uint8arrays...

image

Impact

I can't use odd in starboard

Solution

different bundling strategy?

Detail

uint8arrays is used all over the place...
https://github.com/search?q=repo%3Aoddsdk%2Fts-odd%20%20%20uint8arrays&type=code

To Reproduce
try
https://starboard.gg/gotjoshua/oddsdk-fission-esm-broken-nYw9yF3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions