《Angular之Cannot find 'ExamManagerModule' in './exam-manage/exam-manage.module'》
来源:互联网 发布:人人商城源码下载 编辑:程序博客网 时间:2024/05/16 17:33
前言:
随着angular的深入实践,许多隐含问题付出水面。而恰是这些问题的解决,对于前端框架Angular的相关知识理解又加深一层。请听小编今天为大家介绍的错误点。
正文:
错误现象
问题定位
第一步,开发环境和测试环境效果不一样,开发环境能从考试管理,点击考试配置出来页面,但是测试环境实现不了。
猜测,Jenkins构建测试环境时,没有构建已经改变后的代码,尝试无果后。将前端139服务器上的编译、开发、测试、生产源代码包括构建文件全部删除,彻底从svn上拉取代码。此次尝试之后,错误一致,开发和测试环境功能不一致问题解决。
第二步,从一级路由跳转到考试管理页面就跳转不了,确定是某一模块出现了问题,极有可能是使用了同步路由,也就是在父组件考试管理直接绑定了很多组件。继而采用默认路由进行跳转,验证猜想,通过排查,确定父组件考试管理绑定了图表组件,将图表组件去掉之后就可以正常运行。
由于图表采用Echart是第三方组件库,继而先暂且去掉图表组件的绑定,不影响目前试卷的配置。
因第三方组件库引入带来的项目崩溃彻底的解决方案是:当项目开发完毕后,Jenkins上部署的源代码库不变,在配置的时候,去掉cnpm install,只要package.json不变,node库就让它稳定在某一阶段,不再从npm上重新拉取相应的项目依赖包。
结语:
知识需要反复,需要在错误中成长。
阅读全文
0 0
- 《Angular之Cannot find 'ExamManagerModule' in './exam-manage/exam-manage.module'》
- exam
- Exam
- Cannot find module 'angular-in-memory-web-api'
- Cannot find module “angular-in-memory-web-api”
- 【ng2】Cannot find module 'angular-in-memory-web-api'
- Manage Taxonomies in Orchard
- Manage Data in Containers
- Manage CPU cores in Linux
- Manage ZooKeeper in IntelliJ IDEA
- RHEL6 RHCE exam in Singapore
- ERROR in Cannot find module 'node-sass'
- ERROR in Cannot find module 'node-sass'
- Manage Control Flow in Struts Apps
- Local File Manage in JavaScript Using FileSystemObject
- Manage objective c object memory in Block
- why manage transaction in your service
- manage .deb package in linux (ubuntu) dpkg
- 在我的世界中实现了聊天框显示文字
- pyspark+jieba分词 数据标注(提取动词)
- fatal error: caffe/proto/caffe.pb.h: No such file or directory #include "caffe/proto/caffe.pb.h
- OutOfRangeError closed and has insufficient elements (requested 512, current size 362)
- JS 学习杂记
- 《Angular之Cannot find 'ExamManagerModule' in './exam-manage/exam-manage.module'》
- vim 系列二:Taglist的安装和使用
- MVP登录注册
- 如何关闭redis服务
- 文档词袋模型
- 实例讲解C++编程中的虚函数与虚基类
- linux如何查看JDK的安装路径
- CCSv7使用指南连载8:构建便于移植的工程
- ECL-Final2017游记