-
Notifications
You must be signed in to change notification settings - Fork 186
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
js-plugin-nft-storage issues with React Native #527
Comments
Yeah, Maybe Metaplex should create a fork of this that's essentially a noop, and build a browser/native bundle with it? js/packages/js-plugin-nft-storage/src/BlockstoreCarReader.ts Lines 1 to 49 in 281403c
|
Hi there, Could you try to provide a token to the NFT.Storage plugin and see if you get the same error? They warned us recently that they were going to disable the Metaplex authenticator as people were abusing it. I recently had a similar issue and was getting lots of weird module errors and it turns out it was just because of that, so worth double checking. |
Hey @lorisleiva, Just tested, its still happening even with the a token provided. This should be unrelated to the Metaplex-auth endpoint change, as this happens at build/bundle time before we've even executed any uploads. The root cause is the reliance on a node library. Something similar also happens when trying to use I ended up getting around this just by sending raw HTTP requests to NFT.storage endpoint rather than trying to use it as a |
Hi there, thanks for confirming this was not the issue. I'm going to pay more attention to React Native environments going forward on our Umi-compatible libraries. However, please note that the JS SDK is no longer the recommended way to use Metaplex's products and therefore updates for these plugins are not planned. Regarding NFT.Storage, they have announced a brand new client API recently so I should be re-creating the NFT.Storage Umi plugin as soon as I can. |
@lorisleiva can you expand on this? |
@joenoon Hi, I mean this repository/package is gradually being replaced with our new Umi framework and the various Umi-compatible libraries such as Mpl Toolbox and Mpl Token Metadata. |
I'm trying to use NFT.storage as the Storage Provider plugin for Metaplex and running into dependency issues. I want to rely on the
metaplex-auth
scheme so I'm not passing any API token.Code:
Attempting to use
nftStorage()
when instantiating my Metaplex instance.Error:
Results in this error
What I've tried
I dug into the
nft.storage
module and found thatipfs-car/blockstore/fs
relies on the node libraryfs
which isn't available on non-Node environments. But, I saw that this plugin should be compatible on browser(?) which also doesn't havefs
so I'm confused.Question
The text was updated successfully, but these errors were encountered: