리엑트 네이티브(React-native) troubleshoot 리스트
Error - babelHelpers.asyncToGenerator is not a function
Jest 테스트에서 async/await를 사용하려고 documentation 대로 babel-plugin-transform-async-to-generator를 설치하자
1 | npm install --save-dev babel-plugin-transform-async-to-generator | cs |
babelHelpers.asyncToGenerator is not a function 라는 에러가 뜸.
NPM패키지를 지우고 다시 gradlew clean을 했음에도 같은 에러가 계속 뜸
리엑트 네이티브 캐시 때문에 그런거 같다고 해서 아래와 같은 cli command를 돌려봄. 해결!
해결책 - 출처
react-native start --reset-cache
'미드영어 공부' 카테고리의 다른 글
Angular 4 튜토리얼- 설치/프로젝트 생성하기 (0) | 2017.04.07 |
---|---|
자바스크립트(Javascript) new fn() and f() 차이점 (0) | 2017.03.14 |
Javascript 클로저 ( closure ) (0) | 2017.03.14 |