You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
bug
What is the current behavior?
I see following error when I build production bundle
Error: Unable to resolve module missing-asset-registry-path from /Users/XXX/Develop/XXX/node_modules/@react-navigation/elements/lib/commonjs/assets/back-icon-mask.png: missing-asset-registry-path could not be found within the project or in these directories:
node_modules/@react-navigation/elements/node_modules
node_modules
> 1 | �PNG
2 |
3 |
4 | IHDR2���gAMA��
�a cHRMz&�����u0�`:�p��Q<bKGD���̿tIME�
2 |
3 |
4 | IHDR2���gAMA��
�a cHRMz&�����u0�`:�p��Q<bKGD���̿tIME�.
If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.
on react native project cd android && ./gradlew bundleRelease
What is the expected behavior?
Metro should process images
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
Hi @A-Kasaaian, you don't mention what versions of RN/Metro/(Expo?) you're using, which might be helpful, but that looks like your configuration isn't being picked up at all - ie the CLI isn't finding your config file.
What's your project structure and what's the name and location of your config file?
All was working on RN 70.6 but I had to upgrade packages. I ended up with current latest versions of metro and RN (75.4).
I had the same error for my project images but I resolved them by changing Image attribute source ={require('@assets/image.png')} to source={{ uri: '@assets/image.png'}}.
Do you want to request a feature or report a bug?
bug
What is the current behavior?
I see following error when I build production bundle
If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can
yarn install
andyarn test
.on react native project
cd android && ./gradlew bundleRelease
What is the expected behavior?
Metro should process images
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const config = {
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config)
I have already tried most of configs shared on this repo and react-native repo or stackoverflow.
The text was updated successfully, but these errors were encountered: