Skip to content

vxrn not working with certain expo modules #301

@clayrisser

Description

@clayrisser

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions