커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
StackNavigator.js 코드스니펫 복붙 후 에러
[왕초보] 나만의 수익성 앱, 앱개발 종합반
3주차
북마크
진*우
댓글
10
추천
0
조회수
22
조회수
22
답변 완료


StackNavigator.js 코드스니펫 복붙 후에 터미널 창에 이런 에러 메시지가 뜨네요

같은 질문에 답변달아 주신걸 보고 babel.config.js도 바꿔보았는데 에러가 계속 뜹니다.






Android Bundling failed 2821ms

Unable to resolve module react-native-safe-area-context from C:\Users\Administrator\Desktop\sparta\sparta-study\sparta-myhoneytip-jin\node_modules\@react-navigation\stack\src\views\Header\Header.tsx: react-native-safe-area-context could not be found within the project or in these directories:

 node_modules\@react-navigation\stack\node_modules

 node_modules

 2 | import { StackActions } from '@react-navigation/native';

 3 | import * as React from 'react';

> 4 | import { useSafeAreaInsets } from 'react-native-safe-area-context';

  |                  ^

 5 |

 6 | import type { StackHeaderProps } from '../../types';

 7 | import debounce from '../../utils/debounce';



취소
 공유
취소
댓글 0
댓글 알림
나의얼굴