Open guyzmo opened 10 months ago
Hi @guyzmo, thanks for reaching out!
So far we've not been able to reproduce your issue with a bare Expo 49 repo following your steps. Could you try to provide us with a minimal reproducible example?
If this is not possible, the error log you provided mentions a Command: node buildcheck.js > buildcheck.gypi && node-gyp rebuild
.
Could you include a copy of your buildcheck.js
file and anything related to your buildcheck configuration so we can try to replicate it on our end?
Finally, a more complete error log seems to be available at /usr/local/share/.config/yarn/global/yarn-error.log
, could you include this as well?
Thanks a lot!
We're also seeing this issue. I can't reproduce it with the steps shown above, but here's an alternative minimal repro:
cimg/node:18.18
containerpackage.json
containing:
{
"dependencies": {
"@datadog/mobile-react-native": "^1.8.2",
"@datadog/mobile-react-navigation": "^1.8.2",
"expo": "^48.0.0",
"expo-local-authentication": "~13.3.0",
"expo-secure-store": "~12.1.1",
"jest-expo": "^48.0.0",
"react": "18.2.0",
"react-native": "0.71.14"
},
"devDependencies": {
"@babel/core": "^7.21.8",
"@babel/runtime": "^7.21.5",
"@datadog/datadog-ci": "^2.25.0",
"@storybook/addon-actions": "^6.5.16",
"@storybook/addon-controls": "^7.0.22",
"@storybook/addon-ondevice-actions": "^6.5.7",
"@storybook/addon-ondevice-controls": "^6.5.7",
"@storybook/addons": "^7.0.22",
"@storybook/core-common": "^6.5.16",
"@storybook/react-native": "^6.5.7",
"apollo-server-errors": "^3.3.1",
"babel-jest": "^29.7.0",
"babel-loader": "^9.0.1",
"detox": "^20.13.5",
"jest": "^29.7.0",
"jest-junit": "^14.0.1",
"metro-react-native-babel-preset": "^0.73.10",
"react-dom": "^18.2.0",
"react-test-renderer": "18.2.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
}
}
yarn
The output is a bit confusing as it says both failed and succeeded. But the key issue is that Yarn exits with a non-zero code which is causing our pipeline to fail.
A workaround for the time being is to run yarn global add node-gyp
on the container before running yarn.
Bug description
After upgrading expo to SDK-49, it has become impossible to build the application, or at least on linux. The build passes on macOS instances.
N.B.: on CI I run
yarn --frozen-lockfile --prefer-offline
.After uninstalling all datadog deps and reinstalling them, the gitlab-ci error above happened again, but the scripts passed for EAS android.
Describe what you expected
a successful build.
Steps to reproduce the issue
setup an expo project and add datadog related stuff:
and then, on a linux machine (my CI), just run
I'm doing it on CI on linux.
Additional context
Command
None