Opening DevTools in the browser... (press shift-d to disable)
error Invalid regular expression: /(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Unterminated character class. Run CLI with --verbose flag for more details.
이런 오류가 뜬다면 node 호완성 문제이다.
해당 폴더의 \node_modules\metro-config\src\defaults\blacklist.js로 이동한다.
var sharedBlacklist = [
/node_modules[/\\]react[/\\]dist[/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
이렇게 되어있는 구문을 아래와 같이 바꿔준다.
var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
'개발 > React Natie' 카테고리의 다른 글
[React Native] 인터넷 연결 확인법 (0) | 2020.01.15 |
---|---|
[React Native] 언어 변경 (0) | 2020.01.15 |
[React Native] 개발 환경 설정 (2) (0) | 2020.01.10 |
[React Native] 프로젝트 빌드 오류 해결법 (0) | 2020.01.09 |
[React Native] 개발 환경 설정 (1) (0) | 2020.01.08 |