react-native init 새 0.57.1 프로젝트 실행 오류

 Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(Unable to resolve module `@babel/runtime/helpers/interopRequireDefault` from `/Users/hjs/Desktop/worksplace/MyProject/index.js`: Module `@babel/runtime/helpers/interopRequireDefault` does not exist in the Haste module map

 

This might be related to https://github.com/facebook/react-native/issues/4968

To resolve try the following:

  1. Clear watchman watches: `watchman watch-del-all`.

  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.

  3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.

  4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`. (null))

해결 방법:
1.         :
npm add @babel/runtime
2.   install  
npm install

다시 실행 하면 됩 니 다.

좋은 웹페이지 즐겨찾기