로그아웃 버튼을 클릭하면 Error: ENOENT: no such file or directory, stat '/Users/user/Documents/code/MatzipApp/server/uploads/index.html' 이런 에러가 나오고있어서 uploads폴더에 Index.html파일을 추가하니까 에러는 안나오는데 index.html에 아무것도 안작성해도되나요?
현재 세팅을 모두 완료한 상태에서 `npm run android --reset-cache`를 했을 때, 실패를 하게 됩니다. ./gradlew clean으로 설정을 마무리 했을 때 같은 문제가 발생합니다. 현재 T-map 설치 sdk 버전은 com.skt.Tmap_1.76.jar입니다. rn 버전은 0.74입니다. 아래와 같이 세팅은 모두 마친 상태에서 다음과 같이 에러가 발생하고 있습니다. github commit : https://github.com/kd02109/react-native-delivery/commit/590f740f6fae2f42499c6c20af7e7e775cb76ab0 Error log Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. 203 actionable tasks: 199 executed, 4 up-to-date info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:\Users\-\Desktop\Github\ReactnativeDelivery\node_modules\react-native-image-resizer\android\src\main\java\fr\bamlab\rnimageresizer\ImageResizerModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:\Users\-\Desktop\Github\ReactnativeDelivery\node_modules\react-native-permissions\android\src\main\java\com\zoontek\rnpermissions\RNPermissionsPackage.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: C:\Users\-\Desktop\Github\ReactnativeDelivery\node_modules\react-native-safe-area-context\android\src\paper\java\com\th3rdwave\safeareacontext\NativeSafeAreaContextSpec.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:\Users\-\Desktop\Github\ReactnativeDelivery\node_modules\react-native-screens\android\src\paper\java\com\swmansion\rnscreens\NativeScreensModuleSpec.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:25:35 Unexpected tokens (use ';' to separate expressions on the same line) e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:26:111 Expecting ')' e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:49:1 Expecting a top level declaration e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:14:12 Unresolved reference: microsoft e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:22:13 Unresolved reference: PackageList e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:25:17 Unresolved reference: add e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:25:21 Unresolved reference: TMapPackage e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:26:17 Unresolved reference: add e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:26:21 Unresolved reference: CodePush e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:26:49 Unresolved reference: CodePushDeploymentKey e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:30:9 'getJSMainModuleName' overrides nothing e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:32:9 'getUseDeveloperSupport' overrides nothing e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:34:9 'isNewArchEnabled' overrides nothing e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:35:9 'isHermesEnabled' overrides nothing e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:38:3 Modifier 'override' is not applicable to 'top level property without backing field or delegate' e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:39:33 Unresolved reference: applicationContext e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:39:53 Unresolved reference: reactNativeHost e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:41:3 Modifier 'override' is not applicable to 'top level function' e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:42:5 No supertypes are accessible in this context e: file:///C:/Users/-/Desktop/Github/ReactnativeDelivery/android/app/src/main/java/com/reactnativedelivery/MainApplication.kt:43:19 'this' is not defined in this context FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:compileDebugKotlin'. > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction > Compilation error. See log for more details 어떤 방식으로 해결을 해야 할까요? 해당 세팅 방식은 제로초님의 repo중 https://github.com/ZeroCho/food-delivery-app/tree/master/rn73 을 참고했습니다. 출발 지점을 클릭하게 되면 해당 openNavi 자체 모듈을 찾아서 실행할 수 없다는 에러가 발생하고 있는 상황입니다. andoroid에서 add package, T-map api 가이드를 모두 진행하고 키도 도입한 상황에서 실행이 되지 않고 있습니다..
안녕하세요 강사님. 강의 잘 듣고 있습니다. :) 강의 진행 중 구글맵을 띄우는 과정에서 ERROR react-native-maps: AirGoogleMaps dir must be added to your xCode project to support GoogleMaps on iOS. 라는 오류가 발생하는데요, 이 때문에 구글맵이 보이지 않아서 진행이 어려운 상태 입니다. 앞서 해당 강의에서 8분 가량 설명 해주신 부분은 모두 진행 하였는데요, 어떻게 하면 구글 맵을 띄울 수 있을까요?ㅜㅜ
안녕하세여 강사님 강의 잘 듣고 있습니다. 다름이 아니라 회원가입 및 로그인 api 요청 성공시 onSuccess 함수 로직에 있는 queryClient.refetchQueries({ queryKey: [queryKeys.AUTH, queryKeys.GET_ACCESS_TOKEN], }); 이 코드로 getAccessToken ( /auth/refresh ) api 를 요청하고 있습니다. 여기서 문제는 getAccessToken 요청시 401 error 가 발생하고 있습니다. DB 에 회원가입으로 생성된 유저 데이터는 잘 생성된 상태이고 오타는 없어보입니다. ㅠㅠ 도와주세여 아래 이미지는 log 이미지입니다.
import React, {ReactNode} from 'react'; import { Pressable, StyleSheet, Text, PressableProps, Dimensions, View, StyleProp, ViewStyle, TextStyle, } from 'react-native'; import {colors} from '../../constants'; import useThemeStore from '@/store/useThemeStore'; import {ThemeMode} from '@/types/common'; interface CustomButtonProps extends PressableProps { label: string; variant?: 'filled' | 'outlined'; size?: 'large' | 'medium'; inValid?: boolean; style?: StyleProp<ViewStyle>; textStyle?: StyleProp<TextStyle>; icon?: ReactNode; } const deviceHeight = Dimensions.get('screen').height; function CustomButton({ label, variant = 'filled', size = 'large', inValid = false, style = null, textStyle = null, icon = null, ...props }: CustomButtonProps) { const {theme} = useThemeStore(); const styles = styling(theme); // 여기서는 제대로 출력이 됩니다. 값이 제대로 읽힙니다. console.log(colors[theme].PINK_700); return ( <Pressable disabled={inValid} style={({pressed}) => [ styles.container, pressed ? styles[`${variant}Pressed`] : styles[variant], inValid && styles.inValid, style, ]} {...props}> <View style={styles[size]}> {icon} <Text style={[styles.text, styles[`${variant}Text`], textStyle]}> {label} </Text> </View> </Pressable> ); } const styling = (theme: ThemeMode) => StyleSheet.create({ container: { borderRadius: 3, justifyContent: 'center', flexDirection: 'row', }, inValid: { opacity: 0.5, }, filled: { backgroundColor: colors[theme].PINK_700, }, outlined: { borderColor: colors[theme].PINK_700, borderWidth: 1, }, filledPressed: { backgroundColor: colors[theme].PINK_500, }, outlinedPressed: { borderColor: colors[theme].PINK_700, borderWidth: 1, opacity: 0.5, }, large: { width: '100%', paddingVertical: deviceHeight > 700 ? 15 : 10, alignItems: 'center', justifyContent: 'center', flexDirection: 'row', gap: 5, }, medium: { width: '50%', paddingVertical: deviceHeight > 700 ? 12 : 8, alignItems: 'center', justifyContent: 'center', flexDirection: 'row', gap: 5, }, text: { fontSize: 16, fontWeight: '700', }, filledText: { color: colors[theme].WHITE, }, outlinedText: { color: colors[theme].PINK_700, }, }); export default CustomButton; console.log(colors[theme].PINK_700); 이렇게 출력할 경우, 제대로 아래와 같이 출력이 됩니다만 스타일은 제대로 읽어오지 않습니다. 이 부분에 대해서 알고 싶습니다. BUNDLE ./index.js LOG Running "MatzipApp" with {"rootTag":171,"initialProps":{"concurrentRoot":false}} LOG light LOG #C63B64 LOG #C63B64 LOG #C63B64 ERROR TypeError: Cannot read property 'PINK_700' of undefined This error is located at: in CustomButton (created by ErrorBoundary) in RCTView (created by View) in View (created by ErrorBoundary) in ErrorBoundary (created by RetryErrorBoundary) in RetryErrorBoundary (created by RootNavigator) in RootNavigator (created by App) in EnsureSingleNavigator in BaseNavigationContainer in ThemeProvider in NavigationContainerInner (created by App) in _QueryClientProvider (created by App) in App in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer in MatzipApp(RootComponent), js engine: hermes ERROR TypeError: Cannot read property 'WHITE' of undefined This error is located at: in RetryErrorBoundary (created by RootNavigator) in RootNavigator (created by App) in EnsureSingleNavigator in BaseNavigationContainer in ThemeProvider in NavigationContainerInner (created by App) in _QueryClientProvider (created by App) in App in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer in MatzipApp(RootComponent), js engine: hermes ERROR TypeError: Cannot read property 'WHITE' of undefined This error is located at: in RetryErrorBoundary (created by RootNavigator) in RootNavigator (created by App) in EnsureSingleNavigator in BaseNavigationContainer in ThemeProvider in NavigationContainerInner (created by App) in _QueryClientProvider (created by App) in App in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer in MatzipApp(RootComponent), js engine: hermes ERROR TypeError: Cannot read property 'WHITE' of undefined https://github.com/dydals3440/MatZip 좀더 정확히 판단을 위하여 제가 커밋한 레포 남겨드립니다!!!
[Nest] 27666 - 2024. 05. 23. 오후 12:23:25 ERROR [ExceptionsHandler] ENOENT: no such file or directory, stat '/Users/제이름/MatzipApp/server/uploads/index.html'Error: ENOENT: no such file or directory, stat '/Users/제이름/MatzipApp/server/uploads/index.html' 아까 올린 문제는 제가 지역을 잘못봐서 .env 파일에서 수정해서 해결했습니다. 다시 실행해보니 이번엔 저런 오류가 뜨는데욥실제로 저런 디렉토리랑 파일이 서버 하위에 없긴 합니다.. 구글링해도 도저히 답이 안나와서 다시 한번 질문 드립니다!
save it under ios folder as "Config.xcconfig" with the following content: #include? "tmp.xcconfig" ios폴더 들어가셔서 Config.xcconfig라는 새파일 만드시고 위 코드 넣으시면 동작합니다. 출처: https://www.npmjs.com/package/react-native-config
해당 강좌 그대로 진행하다가, 의존성 배열 문제로 인해 무한 렌더링이 발생했습니다. 강사님의 깃허브 코드를 바탕으로, 강좌와 다르게 전역 상태로 관리를 진행하여 해결을 하긴 했습니다. 어떠한 문제로 인해, 무한 렌더링이 발생되고, 이럴 경우에 어떤 방식으로 접근해서 해결하는지에 대한 접근 방식에 대해 알고 싶습니다!!! web과 다르게 RN은 디버깅하기가 생각보다 쉽지않네요... ㅠㅠ
버그나 에러 질문은 아니구요! react native date picker 패키지를 이용해 DatePicker를 구현하는 단계있는데요, textColor prop을 타이핑할 때 자동완성이 안되어 찾아보니 올해 3월 23일에 릴리즈한 5.0.0에서 제거되었네요. https://github.com/henninghall/react-native-date-picker/releases/tag/5.0.0 대신 theme을 사용하라고 하는데, 기본값인 auto를 쓰거나 혹은 light로 설정하면 강의와 같이 text가 검은색으로 잘 나옵니다. 강의 들으시다가 저처럼 띠용하시는 분 계실까봐 참고차 남겨놓습니다! 좋은 강의 감사드립니다!
강사님! 저의 문제점이 다른 질문자들의 내용과 같은 상황이라 질문과 답변 내용을 참고하여 오류를 찾아보았는데 여전히 회원가입과 로그인버튼이 제대로 동작하지 않습니다. 서버도 켜놓았고 로그를 출력했으때 data값이 출력은 됩니다. 코드 확인 해주실수 있을까요? 한참 찾아보는데 문제가 어떤건지 못찾고있습니다. https://github.com/happyssun/FoodsMap