React Native 错误 Module does not exist in the module map
2017-09-21 19:21
381 查看
bundling failed: "Unable to resolve module `login` from `/Users/zhangdi/work/rn/zhtxcs/app/pages/App.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`."
看错误说是找不到路径
import Login from 'login'
import Index from 'index'
导入自己写的js一定不要忘了写‘./’,否则会以为引入的是modules。。。。
改成:
import Login from './login'
import Index from './index'
相关文章推荐
- react-native 警告之module does not exist in the module map or in these directories
- 解决The type or namespace name \'XXXX\' does not exist in the namespace \'XXXXXXXXX\' 的错误
- 错误码: 1630 FUNCTION count does not exist. Check the 'Function Name Parsing and Resolution' section in
- Unity 错误(1)——The name `xxx' does not exist in the current context
- [EntLib]解决The type or namespace name 'Data' does not exist in the namespace 'Microsoft.Practices.EnterpriseLibrary' 的错误
- 如何解决 The name ControlID does not exist in the current context 错误!
- 关于使用MyEclipse启动web项目时工具报 The specified JRE installation does not exist 错误提示解决方法
- About Derby "ERROR 42X51: The class '***' does not exist or is inaccessible. This can hap pen if the class is not public."
- Error:The type or namespace name 'Office' does not exist in the namespace 'Microsoft' 解决方法
- 错误: Could not edit the data in the folder or database selected. The current version does not support editing (base, consistent, or closed)
- MVC:The name 'Scripts' does not exist in the current context
- Compiler Error Message: CS0234: The type or namespace name 'BorderDetails' does not exist in the class or namespace 'Infragistics.WebUI.Shared' (are you missing an assembly reference?)
- InitializeComponent does not exist in the current context
- The user does not exist or is not unique错误
- does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
- The type or namespace name 'Zhaopin' does not exist in the namespace 'LMSoft' 问题的解决
- MYSQL操作中错误The user specified as a definer ('root'@'%') does not exist的解决
- HttpUtility does not exist in the current context
- 关于编写WPF UserControl时提示The name 'InitializeComponent' does not exist in the current contextr的解决!
- Create a new job (in shared HR), Errors: 'ID&ID for the flexfield segment &SEGMENT does not exist in