LoginSignup
1
0

More than 5 years have passed since last update.

【React Native】いきなりmodule unresolvedが発生したとき

Posted at

何が起きた?

redux-sagaのmoduleを触っていないのに、node_modules/redux-saga/lib/internal/sagaHelpers/takeEveryrequire("./fsmIterator"))がmodule unresolvedだよーって言われた

やったこと

  • Metro Bundlerのキャッシュクリア
    • rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf $TMPDIR/haste-map-react-native-packager-*
  • watchmanクリア
    • watchman watch-del-all
  • monorepo(lerna)環境だったので
    • lerna clear, rootのnode_modules削除, lerna bootstrap

結論

PC再起動

まじかよ。なおった。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0