Closed bmeeder22 closed 2 years ago
Note: Manually changing export * from './index'
=> export { SolanaExtension } from './index.js';
fixes the issue.
However this will require a code change in index.native.ts
index ea465c2..d7e865e 100644 --- a/packages/@magic-ext/solana/src/index.native.ts +++ b/packages/@magic-ext/solana/src/index.native.ts @@ -1 +1 @@ -export * from './index'; +export {SolanaExtension} from './index.js';
:rocket: Issue was released in @magic-ext/conflux@0.1.1
, @magic-ext/solana@3.0.1
:rocket:
✅ Prerequisites
magic-sdk
)?🐛 Description
When attempting to use @magic-ext/solana in a build of React Native the build will error out with the following error:
🤔 Expected behavior
When using this exact same import scheme in regular web the Magic object is able to be initialized with no errors.
😮 Actual behavior
We see the following warning:
Screenshot of the error:
This is most likely due to some issue with the fact that index.native.js is referencing itself and is not importing correctly. We can see this issue happening in this stack overflow issue
💻 Code Sample
🌎 Environment
@magic-sdk/react-native
@magic-ext/solana
yarn