Project with path ':expo-modules-core' could not be found in project ':expo-barcode-scanner'.

I’ve been trying to build our App using EAS but getting the same error in the title

Project with path ':expo-modules-core' could not be found in project ':expo-barcode-scanner'.

expo-barcode-scanner@10.2.2

here’s the gradlew output

Running './gradlew :app:bundleRelease' in /build/workingdir/build/packages/mobile/android
Downloading https://services.gradle.org/distributions/gradle-6.8-all.zip
Unzipping /root/.gradle/wrapper/dists/gradle-6.8-all/9emh0d32e025cam7aasxcw002/gradle-6.8-all.zip to /root/.gradle/wrapper/dists/gradle-6.8-all/9emh0d32e025cam7aasxcw002
Set executable permissions for: /root/.gradle/wrapper/dists/gradle-6.8-all/9emh0d32e025cam7aasxcw002/gradle-6.8/bin/gradle
Welcome to Gradle 6.8!
Here are the highlights of this release:
 - Faster Kotlin DSL script compilation
 - Vendor selection for Java toolchains
 - Convenient execution of tasks in composite builds
 - Consistent dependency resolution
For more details see https://docs.gradle.org/6.8/release-notes.html
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
> Configure project :app
Installing unimodules:
 unimodules-core@7.1.1 from /build/workingdir/build/node_modules/@unimodules/core
 unimodules-react-native-adapter@6.3.4 from /build/workingdir/build/node_modules/@unimodules/react-native-adapter
 expo-application@3.2.0 from /build/workingdir/build/node_modules/expo-application
 expo-barcode-scanner@10.2.2 from /build/workingdir/build/node_modules/expo-barcode-scanner
 expo-camera@11.2.2 from /build/workingdir/build/node_modules/expo-camera
 expo-constants@11.0.1 from /build/workingdir/build/node_modules/expo-constants
 expo-error-recovery@2.2.0 from /build/workingdir/build/node_modules/expo-error-recovery
 expo-file-system@11.1.3 from /build/workingdir/build/node_modules/expo-file-system
 expo-font@9.2.1 from /build/workingdir/build/node_modules/expo-font
 expo-haptics@10.1.0 from /build/workingdir/build/node_modules/expo-haptics
 expo-image-loader@2.2.0 from /build/workingdir/build/node_modules/expo-image-loader
 expo-keep-awake@9.2.0 from /build/workingdir/build/node_modules/expo-keep-awake
 expo-location@12.1.2 from /build/workingdir/build/node_modules/expo-location
 expo-notifications@0.12.3 from /build/workingdir/build/node_modules/expo-notifications
 expo-permissions@12.1.1 from /build/workingdir/build/node_modules/expo-permissions
 expo-splash-screen@0.11.2 from /build/workingdir/build/node_modules/expo-splash-screen
 expo-structured-headers@1.1.1 from /build/workingdir/build/node_modules/expo-structured-headers
 expo-updates@0.8.2 from /build/workingdir/build/node_modules/expo-updates
expo-web-browser@9.2.0 from /build/workingdir/build/node_modules/expo-web-browser
 unimodules-app-loader@2.2.0 from /build/workingdir/build/node_modules/unimodules-app-loader
 unimodules-task-manager-interface@6.2.0 from /build/workingdir/build/node_modules/unimodules-task-manager-interface
[stderr] FAILURE: Build failed with an exception.
[stderr] * Where:
[stderr] Script '/build/workingdir/build/node_modules/@unimodules/core/unimodules-core.gradle' line: 15
[stderr] * What went wrong:
[stderr] A problem occurred evaluating project ':expo-barcode-scanner'.
[stderr] > Project with path ':expo-modules-core' could not be found in project ':expo-barcode-scanner'.
[stderr] * Try:
[stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 44s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings
Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.

I’ve also tried reverting back to 10.1.2, I still have an error but different

Running './gradlew :app:bundleRelease' in /build/workingdir/build/packages/mobile/android
Downloading https://services.gradle.org/distributions/gradle-6.8-all.zip
Unzipping /root/.gradle/wrapper/dists/gradle-6.8-all/9emh0d32e025cam7aasxcw002/gradle-6.8-all.zip to /root/.gradle/wrapper/dists/gradle-6.8-all/9emh0d32e025cam7aasxcw002
Set executable permissions for: /root/.gradle/wrapper/dists/gradle-6.8-all/9emh0d32e025cam7aasxcw002/gradle-6.8/bin/gradle
Welcome to Gradle 6.8!
Here are the highlights of this release:
 - Faster Kotlin DSL script compilation
 - Vendor selection for Java toolchains
 - Convenient execution of tasks in composite builds
 - Consistent dependency resolution
For more details see https://docs.gradle.org/6.8/release-notes.html
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
> Configure project :app
Installing unimodules:
 unimodules-core@7.1.1 from /build/workingdir/build/node_modules/@unimodules/core
 unimodules-react-native-adapter@6.3.4 from /build/workingdir/build/node_modules/@unimodules/react-native-adapter
 expo-application@3.2.0 from /build/workingdir/build/node_modules/expo-application
 expo-barcode-scanner@10.1.2 from /build/workingdir/build/node_modules/expo-barcode-scanner
 expo-camera@11.2.2 from /build/workingdir/build/node_modules/expo-camera
 expo-constants@11.0.1 from /build/workingdir/build/node_modules/expo-constants
 expo-error-recovery@2.2.0 from /build/workingdir/build/node_modules/expo-error-recovery
 expo-file-system@11.1.3 from /build/workingdir/build/node_modules/expo-file-system
 expo-font@9.2.1 from /build/workingdir/build/node_modules/expo-font
 expo-haptics@10.1.0 from /build/workingdir/build/node_modules/expo-haptics
 expo-image-loader@2.2.0 from /build/workingdir/build/node_modules/expo-image-loader
 expo-keep-awake@9.2.0 from /build/workingdir/build/node_modules/expo-keep-awake
 expo-location@12.1.2 from /build/workingdir/build/node_modules/expo-location
 expo-notifications@0.12.3 from /build/workingdir/build/node_modules/expo-notifications
 expo-permissions@12.1.1 from /build/workingdir/build/node_modules/expo-permissions
 expo-splash-screen@0.11.2 from /build/workingdir/build/node_modules/expo-splash-screen
 expo-structured-headers@1.1.1 from /build/workingdir/build/node_modules/expo-structured-headers
 expo-updates@0.8.2 from /build/workingdir/build/node_modules/expo-updates
 expo-web-browser@9.2.0 from /build/workingdir/build/node_modules/expo-web-browser
 unimodules-app-loader@2.2.0 from /build/workingdir/build/node_modules/unimodules-app-loader
 unimodules-permissions-interface@6.1.0 from /build/workingdir/build/node_modules/unimodules-permissions-interface
 unimodules-task-manager-interface@6.2.0 from /build/workingdir/build/node_modules/unimodules-task-manager-interface
[stderr] FAILURE: Build failed with an exception.
[stderr] * Where:
[stderr] Script '/build/workingdir/build/node_modules/@unimodules/core/unimodules-core.gradle' line: 15
[stderr] * What went wrong:
[stderr] A problem occurred evaluating project ':expo-barcode-scanner'.
[stderr] > Project with path ':unimodules-barcode-scanner-interface' could not be found in project ':expo-barcode-scanner'.
[stderr] * Try:
[stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings
[stderr] BUILD FAILED in 47s
Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.

expo diagnostic:

  Expo CLI 4.7.3 environment info:
    System:
      OS: macOS 11.5
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.17.3 - /var/folders/4c/b4_nf8fn0r530_l6tg9c9dl00000gn/T/yarn--1627450922770-0.041357837136875686/node
      Yarn: 1.22.10 - /var/folders/4c/b4_nf8fn0r530_l6tg9c9dl00000gn/T/yarn--1627450922770-0.041357837136875686/yarn
      npm: 6.14.13 - ~/.nvm/versions/node/v14.17.3/bin/npm
      Watchman: 2021.06.07.00 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.10.1 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    IDEs:
      Android Studio: 4.2 AI-202.7660.26.42.7486908
      Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^42.0.1 => 42.0.1
      react-native: 0.63.4 => 0.63.4
    npmGlobalPackages:
      expo-cli: 4.7.3
    Expo Workflow: managed

Turns out it was because the said modules were not linked in the expo-yarn-workspaces.symlinks inside the package.json

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.