error: bundling: UnableToResolveError: Unable to resolve module `react/lib/ReactDebugCurrentFrame`
2017-05-17 10:32
609 查看
我们在使用react native的时候可能会遇到这个问题,官方推荐做法是:
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches:
watchman watch-del-all.
2. Delete the
node_modulesfolder:
rm -rf node_modules && npm install.
3. Reset packager cache:
rm -fr $TMPDIR/react-*or
npm start -- --reset-cache.
但是对于有些同学可能并没有用,这个是由于我们react 和react-native版本的问题,我们修改package.json中的react和react-native的版本号如下:
"react": "16.0.0-alpha.6", "react-native": "0.43.0"
然后我们在命令行输入:
rm -rf node_modules && npm install//删除本地模块,并重新安装 npm start //重新开启服务
完美解决。
相关文章推荐
- Unable to resolve module `react/lib/ReactComponentWithPureRenderMixin`
- react-native报错-Unable to resolve module ‘react’
- Unable to resolve module `react-native/Libraries/EventEmitter/EventEmitter`
- UnableToResolveError: Unable to resolve module `***`
- React native 常见错误:unable to resolve module react-native-scrollable-tab-view
- studio3.0关于Error:Unable to resolve dependency for ':@debug/compileClasspath'的解决方案
- React-Native_学习笔记1: Unable to resolve module Dimensions from “...js” Invalid directory /Users/node_m
- Module not found: Error: Cannot resolve module 'react/lib/ReactMount' in ...
- 解决Error generating final archive: Unable to get debug signature key问题
- 使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module
- Conversion to Dalvik format failed with error 1 Type Unable to resolve target 'android-7'的解决办法
- 导入工程时出现Unable to resolve target 'android-18' error解决办法
- 安装tcpreplay出现checking for libpcap... configure: error: Unable to find matching library for header fi
- 解决:Error: Unable to access jarfile ..\lib\proguard.jar
- Error:Unable to resolve target android-9
- 解决:Error: Unable to access jarfile ..\lib\proguard.jar
- ASP.Net DebugError解决方案[转]:Unable to start debugging on the web server.Debugging failes because integrated Windows authentication is not enabled.
- unable to load module /usr/lib/vmware/vmkmod/vmfs3:failure
- Error: Unable to access jarfile ..\lib\proguard.jar
- ERROR: Unable to launch the RTL Schematic process. The input NGR file, Can not fnd the module的解决方法