Unable to resolve module `@babel/runtime/helpers/interopRequireDefault`

前端 未结 7 1944
无人及你
无人及你 2020-12-15 02:30

When creating a new react native project using the standard react-native init MyApp and running react-native run-ios for the first time I\'m seeing

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 02:50

    Current error message suggests these steps to fix this:

    1. Clear watchman watches: watchman watch-del-all
    2. Delete node_modules: rm -rf node_modules and run yarn install
    3. Reset Metro's cache: yarn start --reset-cache
    4. Remove the cache: rm -rf /tmp/metro-*

    The last one solved it for me.

提交回复
热议问题