Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uint8arrays import style is making oddsdk unusable in starbord #576

Open
gotjoshua opened this issue Dec 11, 2023 · 1 comment
Open

uint8arrays import style is making oddsdk unusable in starbord #576

gotjoshua opened this issue Dec 11, 2023 · 1 comment

Comments

@gotjoshua
Copy link

gotjoshua commented Dec 11, 2023

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

@gotjoshua
Copy link
Author

I was able to do some stuff in starboard with the UMD

https://starboard.gg/gotjoshua/oddsdk-fission-nB5JzFm

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant