从 React Native 0.45.1 升级到 0.46.4 后出错
Error after upgrading from React Native 0.45.1 to 0.46.4
error: bundling failed: "Unable to resolve module `ReactNative` from `C:\AnchorDev\Anchor\node_modules\react-native\Libraries\react-native\react-native-implementation.js`: Module does not exist in the module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: `watchman watch-del-all`.\n 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n 3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`."
这是我将 React Native 从 0.45.1 升级到 0.46.4 后收到的错误。我 运行 npm i 但我仍然收到错误。我该如何解决?
尝试删除 node_modules
文件夹并使用 npm install
重新安装软件包
error: bundling failed: "Unable to resolve module `ReactNative` from `C:\AnchorDev\Anchor\node_modules\react-native\Libraries\react-native\react-native-implementation.js`: Module does not exist in the module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: `watchman watch-del-all`.\n 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n 3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`."
这是我将 React Native 从 0.45.1 升级到 0.46.4 后收到的错误。我 运行 npm i 但我仍然收到错误。我该如何解决?
尝试删除 node_modules
文件夹并使用 npm install