G
gdninf
Curioso
Usuário com poucas negociações! Use sempre o saldo do ForoBeta!
Create the Metro file if you don't have it in the project root with the command npx expo customize metro.config.js and inside:
const { getDefaultConfig } = require('@expo/metro-config');
const defaultConfig = getDefaultConfig(__dirname);
defaultConfig.resolver.sourceExts.push('cjs');
defaultConfig.resolver.unstable_enablePackageExports = false;
module.exports = defaultConfig;
OJO
but before running npx expo-doctor
and verify that there are no conflicts with the Firebase/App versions
const { getDefaultConfig } = require('@expo/metro-config');
const defaultConfig = getDefaultConfig(__dirname);
defaultConfig.resolver.sourceExts.push('cjs');
defaultConfig.resolver.unstable_enablePackageExports = false;
module.exports = defaultConfig;
OJO
but before running npx expo-doctor
and verify that there are no conflicts with the Firebase/App versions

