DEV Community

Cover image for Step-by-Step Guide to Creating an Expo Monorepo with Nx

Step-by-Step Guide to Creating an Expo Monorepo with Nx

Emily Xiong on February 16, 2024

This blog will show you how to create an Expo monorepo with Nx. In this example, you will be creating two Expo apps in a monorepo with @nx/expo: on...
Collapse
 
vendramini profile image
André Vendramini

Hey! Nice article :) it has helped a lot!

However, either following the step-by-step or cloning your repository gives the same error. I'm trying to compile locally with: nx build cats --local --profile=preview --platform=ios and I get:

[READ_APP_CONFIG]
PluginError: Failed to resolve plugin for module "@config-plugins/detox" relative to "/var/folders/bm/z5qdvvh94_q565bkp7kty3zm0000gn/T/eas-build-local-nodejs/fd2cea83-5a69-47f9-9f27-ad1288cd6861/build/apps/cats"
    at resolvePluginForModule (/Users/vendramini/.npm/_npx/7cb2e17578656054/node_modules/@expo/config-plugins/build/utils/plugin-resolver.js:72:11)
    at resolveConfigPluginFunctionWithInfo (/Users/vendramini/.npm/_npx/7cb2e17578656054/node_modules/@expo/config-plugins/build/utils/plugin-resolver.js:152:7)
    at resolveConfigPluginFunction (/Users/vendramini/.npm/_npx/7cb2e17578656054/node_modules/@expo/config-plugins/build/utils/plugin-resolver.js:143:7)
    at withStaticPlugin (/Users/vendramini/.npm/_npx/7cb2e17578656054/node_modules/@expo/config-plugins/build/plugins/withStaticPlugin.js:87:70)
    at /Users/vendramini/.npm/_npx/7cb2e17578656054/node_modules/@expo/config-plugins/build/plugins/withPlugins.js:30:84
    at Array.reduce (<anonymous>)
    at withPlugins (/Users/vendramini/.npm/_npx/7cb2e17578656054/node_modules/@expo/config-plugins/build/plugins/withPlugins.js:30:18)
    at withConfigPlugins (/Users/vendramini/.npm/_npx/7cb2e17578656054/node_modules/@expo/config/build/plugins/withConfigPlugins.js:36:47)
    at fillAndReturnConfig (/Users/vendramini/.npm/_npx/7cb2e17578656054/node_modules/@expo/config/build/Config.js:218:78)
    at getConfig (/Users/vendramini/.npm/_npx/7cb2e17578656054/node_modules/@expo/config/build/Config.js:274:10)

Build failed
Unknown error. See logs of the Read app config build phase for more information.
npx exited with non-zero code: 1
Enter fullscreen mode Exit fullscreen mode

Any idea? Thank you :)