Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 광고 id
- 파이썬
- nuxt
- Next
- 코딩테스트
- 오퍼월
- 오블완
- 코테
- Express
- AWS
- react-native
- 티스토리챌린지
- chrome
- python
- React
- JavaScript
- EC2
- it
- docker
- css
- spring boots
- 백준
- Jenkins
- 개발
- toml
- NanoHttpd
- nginx
- kotlin
- TypeScript
- Android
Archives
- Today
- Total
내맘대로 개발일지
[RN] Make sure you are using @react-native/babel-preset when building your JavaScript code. 본문
Javascript/React-Native
[RN] Make sure you are using @react-native/babel-preset when building your JavaScript code.
eulBlue 2024. 11. 13. 09:03📱테스트 환경
"react": "18.2.0"
"react-native": "0.74.2"
와 해당 경고 때문에 진짜 정신나가는줄 알았다.
ChatGPT 도 몰라 .. 스택오버플로우도 없어 ..
다른 블로그에서도 찾아볼 방법이 없어 ..
(NOBRIDGE) WARN Codegen didn't run for DebuggingOverlay. This will be an error in the future. Make sure you are using @react-native/babel-preset when building your JavaScript code.
(NOBRIDGE) WARN Codegen didn't run for SafeAreaView. This will be an error in the future. Make sure you are using @react-native/babel-preset when building your JavaScript code.
(NOBRIDGE) WARN Codegen didn't run for RNSScreen. This will be an error in the future. Make sure you are using @react-native/babel-preset when building your JavaScript code.
(NOBRIDGE) WARN Codegen didn't run for RNSModalScreen. This will be an error in the future. Make sure you are using @react-native/babel-preset when building your JavaScript code.
(NOBRIDGE) WARN Codegen didn't run for RNSScreenContainer. This will be an error in the future. Make sure you are using @react-native/babel-preset when building your JavaScript code.
(NOBRIDGE) WARN Codegen didn't run for RNSScreenNavigationContainer. This will be an error in the future. Make sure you are using @react-native/babel-preset when building your JavaScript code.
(NOBRIDGE) WARN Codegen didn't run for RNSScreenStack. This will be an error in the future. Make sure you are using @react-native/babel-preset when building your JavaScript code.
(NOBRIDGE) WARN Codegen didn't run for RNSSearchBar. This will be an error in the future. Make sure you are using @react-native/babel-preset when building your JavaScript code.
(NOBRIDGE) WARN Codegen didn't run for RNSFullWindowOverlay. This will be an error in the future. Make sure you are using @react-native/babel-preset when building your JavaScript code.
안되는건 아닌데 경고창때문에 불 ㅡ 편 하던 상황이였고
이를 해결하기위해 열심히 공식문서를 뒤져서 해결했다.
module.exports = {
presets: [
'module:metro-react-native-babel-preset',
...
],
plugins: [
...
]
};
babel.config.js 로 가보면
기본적으로 이렇게 되어있을 것이다.
module.exports = {
presets: [
'@react-native/babel-preset',
...
],
plugins: [
...
]
};
아래와같이 변경해주고
import {enableScreens} from 'react-native-screens';
enableScreens();
App.tsx 에 가서 해당 함수를 호출해
Screen 초기화를 진행해주면 해결된다.
초기화 이슈라는 말이 가장 많았었기 때문에 enableScreens 를 먼저 추가해줬었는데
당연히 안됐고 babel 까지 수정해주고 나니 해결됐다 ㅎ
'Javascript > React-Native' 카테고리의 다른 글
| [RN] React-Native-Select IOS Bug (0) | 2025.02.17 |
|---|---|
| [RN] The process did launch, but has since exited or crashed. (0) | 2025.02.07 |
| [RN] .env dotenv 사용하기 (0) | 2024.11.12 |
| [RN] Can't show Image in React Native (3) | 2024.10.23 |
| [RN] 이미지 불러오기 ( 외부, 내부 ) (0) | 2024.10.21 |