본문으로 바로가기

react native expo build 시 에러 히스토리

category 카테고리 없음 2023. 10. 19. 14:57

 

1. apk 추출을 위해 빌드 시행을 하였으나 아래와 같이 에러 발생

 
C:\eGovFrameDev-3.6.0-64bit\workspace\epv3-mb-office>eas build 
★ eas-cli@5.4.0 is now available.
To upgrade, run npm install -g eas-cli.
Proceeding with outdated version.

√ Select platform » Android
Loaded "env" configuration for the "production" profile: no environment variables specified. Learn more: https://docs.expo.dev/build-reference/variables/
✔ Using remote Android credentials (Expo server)
✔ Using Keystore from configuration: Build Credentials if9pnXezzC (default)

Compressing project files and uploading to EAS Build. Learn more: https://expo.fyi/eas-build-archive
✔ Uploaded to EAS 1s

Build details: https://expo.dev/accounts/epadmin/projects/MobileOffice/builds/4d0db4cb-2ebc-4977-96ca-2644fa50650b

Waiting for build to complete. You can press Ctrl+C to exit.
✖ Build failed

🤖 Android build failed:
Unknown error. See logs of the Install dependencies build phase for more information.

위 에러 상세 확인 url을 가지고 에러 확인

https://expo.dev/accounts/epadmin/projects/MobileOffice/builds/4d0db4cb-2ebc-4977-96ca-2644fa50650b

2. expo 사이트에서 에러 확인

 
warning react-native > metro-react-native-babel-transformer > babel-preset-fbjs > @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.

warning Resolution field "@react-native-community/cli-debugger-ui@4.7.0" is incompatible with requested version "@react-native-community/cli-debugger-ui@^9.0.0"

warning react-native > react-native-codegen > jscodeshift > @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.

warning react-native > react-native-codegen > jscodeshift > @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.

warning react-native > react-native-codegen > jscodeshift > @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.

warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0

[2/4] Fetching packages...

error lint-staged@15.0.1: The engine "node" is incompatible with this module. Expected version ">=18.12.0". Got "16.18.1"

error Found incompatible module.

info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Error: Unknown error. See logs of the Install dependencies build phase for more information.

아래 에러에 착안하여 package.json 과 package-lock.json 버젼 확인해봄

error lint-staged@15.0.1: The engine "node" is incompatible with this module. Expected version ">=18.12.0". Got "16.18.1"

3. package-lock.json 에 lint-staged 버젼 확인

아래와 같이 pagae-lock.json 에 버젼을 지정

lint-staged": ">=10",
-> 
"lint-staged": "^13.0.4",

4. 다시 빌드

C:\eGovFrameDev-3.6.0-64bit\workspace\epv3-mb-office>eas build
★ eas-cli@5.4.0 is now available.
To upgrade, run npm install -g eas-cli.
Proceeding with outdated version.

√ Select platform » Android
Loaded "env" configuration for the "production" profile: no environment variables specified. Learn more: https://docs.expo.dev/build-reference/variables/
✔ Using remote Android credentials (Expo server)
✔ Using Keystore from configuration: Build Credentials if9pnXezzC (default)

Compressing project files and uploading to EAS Build. Learn more: https://expo.fyi/eas-build-archive
✔ Uploaded to EAS 2s

Build details: https://expo.dev/accounts/epadmin/projects/MobileOffice/builds/5acb86ea-1ec5-4341-aadf-4fc910bb23e2

Waiting for build to complete. You can press Ctrl+C to exit.
✔ Build finished
빌드 성공!