Hi @tilthsift ! Did you also use expo-yarn-workspaces? I also face this kind of issue thanks to you & @notbrent, now I’m able to do the pod install. But I keep running into this metro error:
Error: Error loading assets JSON from Metro. Ensure you've followed all expo-updates installation steps correctly. The "directory" argument must be of type string. Received type undefined
at /path/to/node_modules/expo-updates/scripts/createManifest.js:27:11
I already added hashAssetFiles per suggested while ejecting, here’s my current metro.config.js
// eslint-disable-next-line
const { createMetroConfiguration } = require('expo-yarn-workspaces');
// eslint-disable-next-line
const { getDefaultConfig } = require('@expo/metro-config');
module.exports = (() => {
const {
resolver: { assetExts, ...otherResolver },
...otherConfig
} = createMetroConfiguration(__dirname);
const defaultConfig = getDefaultConfig(__dirname);
return {
...defaultConfig,
...otherConfig,
transformer: {
...defaultConfig.transformer,
...otherConfig.transformer,
babelTransformerPath: require.resolve('react-native-svg-transformer'),
minifierConfig: {
keep_classnames: true,
keep_fnames: true,
mangle: {
keep_classnames: true,
keep_fnames: true,
},
output: {
ascii_only: true,
quote_style: 3,
wrap_iife: true,
},
sourceMap: {
includeSources: false,
},
toplevel: false,
compress: {
reduce_funcs: false,
},
},
assetPlugins: ['expo-asset/tools/hashAssetFiles'],
},
resolver: {
...defaultConfig.resolver,
...otherResolver,
assetExts: [...assetExts, ...defaultConfig.resolver.assetExts].filter(
(ext) => ext !== 'svg',
),
sourceExts: ['svg', ...defaultConfig.resolver.sourceExts],
},
};
})();
Here’s the expo diagnostics
Expo CLI 4.1.6 environment info:
System:
OS: macOS 11.2.1
Shell: 5.8 - /bin/zsh
Binaries:
Node: 12.14.1 - ~/.nvm/versions/node/v12.14.1/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v12.14.1/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.6953283
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
npmPackages:
expo: 40.0.1 => 40.0.1
react-dom: 16.13.1 => 16.13.1
react-native: ~0.63.4 => 0.63.4
react-native-web: 0.13.18 => 0.13.18
npmGlobalPackages:
expo-cli: 4.1.6
Expo Workflow: bare
Did you also run into this error?