-
Notifications
You must be signed in to change notification settings - Fork 927
superstruct dependency and react native #1002
Comments
Hey @roccomuso, could you please provide some more info on the issue that you're hitting for react native? The superstruct issue you linked doesn't seem to have anything to do with react native so I'm not sure what exactly the problem is, thanks! |
Build fails when included in create-react-app. That issue regarding superstruct could be find in many other repos |
|
I see, looks like this issue is relevant and has been fixed: ianstormtaylor/superstruct#404 just need to update superstruct in web3 now |
Based on this comment it looks like the change will not work for RN: ianstormtaylor/superstruct#404 (comment) I managed to get it to work on our app using a similar workaround to this: ianstormtaylor/superstruct#404 (comment) We have a different version of metro-config in our project, using RN version 0.61.2 in the file ...
const defaultSourceExts = require('metro-config/src/defaults/defaults').sourceExts
module.exports = {
...
resolver: {
sourceExts: [...defaultSourceExts, 'cjs'],
...
}
} |
This is resolved! |
Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up. |
solana-web3.js
right now doesn't work in react-native environment due to ianstormtaylor/superstruct#86A different
superstruct
bundle without the.cjs
extension should be used.Or it could be replaced entirely with a different dependency.
The text was updated successfully, but these errors were encountered: