댓글감사합니다.. npx react-native upgrade 0.66.5 처음부터 066.5버전을 받고 다시 프로젝트를 만드는게 맞는걸까요..? ------------------------------------------------------ PS C:\Users\asus\GChatProject> npx react-native upgrade 0.66.5 info Fetching diff between v0.66.4 and v0.66.5... info Applying diff... warn Excluding files that exist in the template, but not in your project: - ios/GChatProject.xcworkspace/contents.xcworkspacedata error Excluding files that failed to apply the diff: - ios/GChatProject.xcodeproj/project.pbxproj Please make sure to check the actual changes after the upgrade command is finished. You can find them in our Upgrade Helper web app: https://react-native-community.github.io/upgrade-helper/?from=0.66.4&to=0.66.5 error Automatically applying diff failed. We did our best to automatically upgrade as many files as possible warn Continuing after failure. Some of the files are upgraded but you will need to deal with conflicts manually info Installing "react-native@0.66.5" and its peer dependencies... error Command failed: yarn add react-native@0.66.5 react@17.0.2 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. warning react-native@0.66.5: Issues and pull requests filed against this version are not supported. See the React Native release support policy to learn more: https://github.com/reactwg/react-native-releases#releases-support-policy error Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads ssh://git@github.com/ZeroCho/react-native-naver-map.git Directory: C:\Users\asus\GChatProject Output: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. yarn add v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. . Error: Command failed: yarn add react-native@0.66.5 react@17.0.2 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. warning react-native@0.66.5: Issues and pull requests filed against this version are not supported. See the React Native release support policy to learn more: https://github.com/reactwg/react-native-releases#releases-support-policy error Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads ssh://git@github.com/ZeroCho/react-native-naver-map.git Directory: C:\Users\asus\GChatProject Output: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. yarn add v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. at makeError (C:\Users\asus\GChatProject\node_modules\execa\index.js:174:9) at C:\Users\asus\GChatProject\node_modules\execa\index.js:278:16 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async installDeps (C:\Users\asus\GChatProject\node_modules\@react-native-community\cli\build\commands\upgrade\upgrade.js:219:3) at async Object.upgrade [as func] (C:\Users\asus\GChatProject\node_modules\@react-native-community\cli\build\commands\upgrade\upgrade.js:359:9) at async Command.handleAction (C:\Users\asus\GChatProject\node_modules\@react-native-community\cli\build\index.js:192:9) info Run CLI with --verbose flag for more details.
아래는 npx react-native info 명령어 결과입니다. 66.5로 변경하면 된다는 stackoverflow글을 보고 변경했으나 아직해결되지 않고있습니다... 아이고.. System: OS: Windows 10 10.0.19045 CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz Memory: 6.59 GB / 15.70 GB Binaries: Node: 16.17.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Not Found Visual Studio: 17.5.33530.505 (Visual Studio Community 2022) Languages: Java: 11.0.16.1 - C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin\javac.EXE npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.5 => 0.66.4 react-native-windows: Not Found npmGlobalPackages: react-native : Not Found
sql 오류는 order가 예약어였다는 것을 찾아 해결했습니다! 하지만 아직도 main함수에서 돌리면 빈을 찾지 못했습니다 왜 그런가 하여 그냥 컨트롤러를 구현해 만들어 봤습니다. 안됬던이유가 혹시 메인함수에서 실행을 할 경우 @SpringBootApplication에너테이션이 작동을 안해서 그런가요? 그리고 memberRepository에서 선언한 기능들(void save, optional findById)를 아래 사진의 MemberRepositoryJPA에서 오버라이드해서 구현할 경우 JPA에 있는 같은 이름의 함수와 충돌이 일어났습니다. 일단은 Configuration에서 MemberRepositoryJPA함수를 주입받아 필요한 Service구현체에도 넣어 주었습니다. 하지만 이러면 Service구현체에서 MemberRepositoryJPA 타입의 객체에 받아야 해서 DIP에 위반되는 것 같습니다. MemberRepository에 선언한 기능들이 jpa와memberRepository를 extends한 구현체에서 PA에 있는 같은 이름의 함수와 충돌이 일어나지 않고 잘 쓸 수 있는지 궁금합니다.