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
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');
const path = require('path');
// Find the project and workspace directories
const projectRoot = __dirname;
// This can be replaced with `find-yarn-workspace-root`
const monorepoRoot = path.resolve(projectRoot, '../..');
/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(projectRoot);
config.transformer.getTransformOptions = async () => ({
transform: {
// Inline requires are very useful for deferring loading of large dependencies/components.
// For example, we use it in app.tsx to conditionally load Reactotron.
// However, this comes with some gotchas.
// Read more here: https://reactnative.dev/docs/optimizing-javascript-loading
// And here: https://github.com/expo/expo/issues/27279#issuecomment-1971610698
inlineRequires: true,
},
});
// 1. Watch all files within the monorepo
config.watchFolders = [monorepoRoot];
// 2. Let Metro know where to resolve packages and in what order
config.resolver.nodeModulesPaths = [
path.resolve(projectRoot, 'node_modules'),
path.resolve(monorepoRoot, 'node_modules'),
];
// This helps support certain popular third-party libraries
// such as Firebase that use the extension cjs.
config.resolver.sourceExts.push("cjs")
module.exports = config;
Ignite version
10.1.1
Additional info
System
platform darwin
arch arm64
cpu 8 cores Apple M1
directory bokija-app-v4 /Users/musabgulfam/Documents/bokija-monorepo/apps/bokija-app-v4
JavaScript (and globally-installed packages)
node 20.18.1 /Users/musabgulfam/.nvm/versions/node/v20.18.1/bin/node
npm 10.8.2 /Users/musabgulfam/.nvm/versions/node/v20.18.1/bin/npm
corepack 0.29.4
firebase-tools 13.29.1
npm 10.8.2
yarn 1.22.15 /opt/homebrew/bin/yarn
create-expo 3.2.0
react-devtools 4.26.1
react-native-rename 2.9.0
pnpm - not installed
bun - not installed
expo 51.0.39 managed
expo global cli 6.3.12 Deprecated: Found 'expo-cli' installed. Please remove it.
Ignite
ignite-cli 10.1.1 /Users/musabgulfam/.npm/_npx/e31027f3785124a8/node_modules/.bin/ignite
ignite src build /Users/musabgulfam/.npm/_npx/e31027f3785124a8/node_modules/ignite-cli/build
Android
java 17.0.13 /usr/bin/java
android home - /Users/musabgulfam/Library/Android/sdk
The text was updated successfully, but these errors were encountered:
Describe the bug
So I am getting started with the monorepo guide documented here.
The other guide I used in developing this monorepo is this document from Expo itself.
However, the app runs fine in the standalone mode, but when copied in monorepo/apps/mobile-app directory, the app gets stuck in the splash screen.
Monorepo root package.json
monorepo/apps/mobile-app package.json
monorepo/apps/mobile-app/metro.config.js
Ignite version
10.1.1
Additional info
The text was updated successfully, but these errors were encountered: