我有一个奇怪的例子,它有一个react原生项目,同时运行react导航和redux。
我需要添加这个包:https://github.com/react-navigation/react-navigation-redux-helpers
我跑了:npm install react-navigation-redux-helpers
然后将这一行添加到我的代码中:
import { createNavigationReducer } from 'react-navigation-redux-helpers';现在,每当我运行该项目时,它都无法编译,并显示以下错误:
Module `@react-navigation/core` does not exist in the Haste module map以前有没有人遇到过这样的事情?
我已经尝试删除node_modules文件夹和package.lock文件。然后我尝试清除Watchman和NPM缓存
发布于 2019-04-10 22:52:34
从package.json中删除node_modules文件夹和react-navigation-redux-helpers。
转到项目的根目录,删除当前的节点模块,然后重新安装。
rm -rf node_modules npm installhttps://stackoverflow.com/questions/55610624
复制相似问题