spacebudz / spacebudz

Let's go on an adventure, where will your SpaceBudz take you?

Home Page:https://spacebudz.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic import of emurgo/cardano-serialization package

alexandrosk opened this issue · comments

Hello! Hope I'm not in such a wrong place for asking this!
I'm trying to setup your market locally with my custom react page but when I'm trying to load the Loader just like you're doing on your startbutton script I'm getting an error like this
Cannot read properties of undefined (reading 'from_bytes')
on line: return Loader.Cardano.Address.from_bytes(

Seems like dynamic import is kinda working since Loader and Cardano is loaded but maybe Address is missing for some reason? Any idea? thanks!

error screenshot: https://ibb.co/T8LX55q

commented

Does the constant address return you something?

While it looks like its not empty on the debugger the console returns undefined :/
I believe I'm missing something or I'm doing something wrong I'm using nextjs and not typescript
https://ibb.co/hKmVhbG

Thanks in advance for your time, I guess it's not related