React Native 错误 Module does not exist in the module map
来源:互联网 发布:哪个软件泰国电视剧多 编辑:程序博客网 时间:2024/06/05 07:22
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'
阅读全文
0 0
- React Native 错误 Module does not exist in the module map
- react-native 警告之module does not exist in the module map or in these directories
- React Native学习笔记-3: unable to find module in its module map
- (EE) Failed to load module "fbdev" (module does not exist, 0)
- Tomcat 错误:The server does not support version 3.0 of the J2EE Web module specification
- 解决The type or namespace name \'XXXX\' does not exist in the namespace \'XXXXXXXXX\' 的错误
- Unity 错误(1)——The name `xxx' does not exist in the current context
- react-native开发:运行react-native run-ios报错--Print: Entry, ":CFBundleIdentifier", Does Not Exist
- 解决“the symbol file *.pdb does not match the module”
- The name 'Profile' does not exist in the current context
- The name “LayoutAwarePage” does not exist in the namespace
- The name 'AccordionLayout1' does not exist in the current
- The name does not exist in the current context
- HttpUtility does not exist in the current context
- InitializeComponent does not exist in the current context
- Error:Child module xxx of parent\pom.xml does not exist @ @
- The specified JRE installation does not exist--TomCat 错误解决
- MapReduce程序运行错误:The auxService: mapreduce_shuffle does not exist
- zk应用实例
- PullToRefresh
- 细谈C语言中的strcpy,strncpy,memcpy,memmove,memset函数
- Kotlin-Android-Extensions:不仅仅是替代findViewById
- Caffe 使用Python绘制网络结构图是遇到的错误
- React Native 错误 Module does not exist in the module map
- 购物车MainActivity
- Hbase 常见问题及设置
- 异常
- 计算1-1/2+1/3-....+1/99-1/100的值
- 购物车Adapter
- Hash Table -- Leetcode problem350. Intersection of Two Arrays II
- spring中的异常处理
- linux下qt调用.so