Android build 중 @ionic-native/core와 @ionic-native/geolocation@5.0.0-beta.14 의 의존성 충돌
로그 내용
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @ionic-native/geolocation@5.0.0-beta.14
npm ERR! Found: @ionic-native/core@5.32.1
npm ERR! node_modules/@ionic-native/core
npm ERR! peer @ionic-native/core@"^5.1.0" from @ionic-native/app-version@5.30.0
npm ERR! node_modules/@ionic-native/app-version
npm ERR! @ionic-native/app-version@"^5.30.0" from the root project
npm ERR! peer @ionic-native/core@"^5.1.0" from @ionic-native/background-geolocation@5.36.0
npm ERR! node_modules/@ionic-native/background-geolocation
npm ERR! @ionic-native/background-geolocation@"^5.36.0" from the root project
npm ERR! 15 more (@ionic-native/background-mode, @ionic-native/base64, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @ionic-native/core@"5.0.0-beta.14" from @ionic-native/geolocation@5.0.0-beta.14
npm ERR! node_modules/@ionic-native/geolocation
npm ERR! @ionic-native/geolocation@"^5.0.0-beta.14" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @ionic-native/core@5.0.0-beta.14
npm ERR! node_modules/@ionic-native/core
npm ERR! peer @ionic-native/core@"5.0.0-beta.14" from @ionic-native/geolocation@5.0.0-beta.14
npm ERR! node_modules/@ionic-native/geolocation
npm ERR! @ionic-native/geolocation@"^5.0.0-beta.14" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\hyeon\AppData\Local\npm-cache\eresolve-report.txt for a full report.
해결 방법
npm install cordova-plugin-geolocation npm install @ionic-native/geolocation ionic cap sync
로 인스톨 후
npm i @ionic-native/core
로 코어 다시 인스톨
이후 빌드를 수행하면 정상적으로 빌드 됨
참조
https://stackoverflow.com/questions/66653243/ionic-error-in-ionic-the-target-entry-point-ionic-native-geolocation-has-mis/69196567#69196567
댓글 없음:
댓글 쓰기