holepunchto / bare-module

Module support for JavaScript
Apache License 2.0
3 stars 1 forks source link

Module / Addon Not found. #6

Closed n9lsjr closed 5 months ago

n9lsjr commented 5 months ago

Not sure if this is the correct repo but the trace seem to indicate Module class so here we go. I am trying to require Hyperswarm in to Bare running on expo-Android

image

but the app get stuck at this error.

image

Maybe I am doing something wrong? Do I need to prebuildify that Module somehow?

n9lsjr commented 5 months ago

After further investigation it seems like this resolution here is undefined. I will post any progress if I can make it work 👍

https://github.com/holepunchto/bare/blob/main/src/addon.js#L114

kasperisager commented 5 months ago

You most likely haven't linked the native addons. There's a PR here that adds autolinking to the Expo example: https://github.com/holepunchto/pear-expo-hello-world/pull/6

n9lsjr commented 5 months ago

Ah I missed that one. Thanks king 👍 💯