Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mismatch fingerprint when building an expo app and using runtimeVersion Policy set to fingerprint #29511

Open
1 of 4 tasks
yonitou opened this issue Jan 3, 2025 · 0 comments

Comments

@yonitou
Copy link

yonitou commented Jan 3, 2025

Current Behavior

When creating an EAS Build, Expo is generating a fingerprint to send it to EAS servers.
This EAS build is run on the current machine and since we are in an NX workspace, the node_modules are located in the workspace root and not in the project root.
The fingerprint will look like this :

 "sources": [
    {
      "type": "file",
      "filePath": "../../node_modules/@intercom/intercom-react-native/lib/commonjs/expo-plugins/index.js",
      "reasons": [
        "expoConfigPlugins"
      ],
      "hash": "ee57471bd220448aeab6dc2822c3e30df82f38b3"
    },

But then, when the build is running on the EAS server, there is an npm install step which created a node_modules folder in the the new root of repository with is apps/NAME_OF_PROJECT. So when expo is generating a fingerprint to see if it matches, it's not working because then, the fingerprint will look like this :

 "type": "file",
   "filePath": "node_modules/@intercom/intercom-react-native/lib/commonjs/expo-plugins/index.js",
   "reasons": [
    "expoConfigPlugins"
   ],
   "hash": "ee57471bd220448aeab6dc2822c3e30df82f38b3"

The fingerprint mismatch so the build is failing because the runtimeVersion cannot be checked. It's really a big issue ..

Expected Behavior

The build should not fail and the fingerprint should be the same

GitHub Repo

No response

Steps to Reproduce

  1. Create an expo project with the runtimeVersion policy set to fingerprint
  2. Run the command nx build NAME_OF_APP
  3. The build will fail

Nx Report

NX   Report complete - copy this into the issue template

Node           : 22.12.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 11.0.0

nx                     : 20.3.0
@nx/js                 : 20.3.0
@nx/jest               : 20.3.0
@nx/eslint             : 20.3.0
@nx/workspace          : 20.3.0
@nx/devkit             : 20.3.0
@nx/eslint-plugin      : 20.3.0
@nx/expo               : 20.3.0
@nx/module-federation  : 20.3.0
@nx/react              : 20.3.0
@nx/web                : 20.3.0
@nx/webpack            : 20.3.0
typescript             : 5.7.2

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@yonitou yonitou changed the title Issue with NX/Expo when using runtimeVersion Policy to fingerprint Mismatch fingerprint when building an expo app and using runtimeVersion Policy set to fingerprint Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant