파이어베이스가 업데이트 되면서 파일을 cjs로 되돌려주는데 해당 파일을 받을수 있는 컴포넌트(resolver)가 없어서 발생한 오류
루트 폴더에 metro.config.js 라는 파일을 만들기
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
resolver: {
sourceExts: ['jsx', 'js', 'ts', 'tsx', 'cjs', 'fs'],
},
};
'ReactNative' 카테고리의 다른 글
리액트 네이티브 reload (0) | 2022.08.14 |
---|---|
리액트 네이티브 useState (0) | 2022.08.13 |
날씨정보 가져오기 Weather API (0) | 2022.08.06 |
현재 위치 가져오기 expo location (0) | 2022.08.06 |
expo linking (0) | 2022.08.06 |