Skip to content
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

vxrn not working with certain expo modules #301

Open
clayrisser opened this issue Dec 12, 2024 · 0 comments
Open

vxrn not working with certain expo modules #301

clayrisser opened this issue Dec 12, 2024 · 0 comments

Comments

@clayrisser
Copy link
Contributor

clayrisser commented Dec 12, 2024

For example, I am getting the following error when using expo-asset.

building android bundle for development...
✓ 93 modules transformed.
x Build failed in 2.35s
 Error building React Native bundle: RollupError: ../../node_modules/expo-asset/build/Asset.fx.js (3:9): "setCustomSourceTransformer" is not exported by "../../node_modules/expo-asset/build/resolveAssetSource.native.js", imported by "../../node_modules/expo-asset/build/Asset.fx.js".
file: /workspace/development/node_modules/expo-asset/build/Asset.fx.js:3:9

But I have verified it is indeed exporting setCustomSourceTransformer.

node_modules/expo-asset/build/resolveAssetSource.native.js

import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
export default resolveAssetSource;
export * from 'react-native/Libraries/Image/resolveAssetSource';
//# sourceMappingURL=resolveAssetSource.native.js.map%                                                                      

node_modules/react-native/Libraries/Image/resolveAssetSource.js

resolveAssetSource.pickScale = pickScale;
resolveAssetSource.setCustomSourceTransformer = setCustomSourceTransformer;
resolveAssetSource.addCustomSourceTransformer = addCustomSourceTransformer;
module.exports = resolveAssetSource;

You can see my config at the link below.

https://gitlab.com/bitspur/multiplatform.one/multiplatform.one/-/tree/main/platforms/expo?ref_type=heads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants