2017-02-21 7 views
0

私は反応ネイティブのアプリケーションのリモートデバッグを設定しようとしています。私はremote-redux-devtoolsモジュールを追加し、それをインポートしました。それはnode_modulesディレクトリ(node_modules/remote-redux-devtools)である UnableToResolveError: Unable to resolve module remote-redux-devtools from /Users/.../src/store/createStore.js: Module does not exist in the module map or in these directories:....モジュールremote-redux-devtoolsを解決できません

:誰もが、なぜ私は、次のエラーを取得しています知っています。

+0

どのようにインポートしていますか? –

+2

あなたはpackagerを再起動する必要があるかもしれません..あなたはそれをしましたか? – atlanteh

+0

愚かな間違いは、これを修正!ありがとう – haxpanel

答えて

0

また、このためのモジュールは必要ありません。どこにストアを作成するにしても、composeEnhancers関数を定義してミドルウェアに適用してください:

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose 

const store = createStore(
    ...reducers, 
    ...initialState, 
    composeEnhancers(
    ...middleware 
) 
) 
関連する問題