1、

问题:Error: read ECONNRESET

启动使用ionic serve启动服务器之后只要一刷新界面就会导致服务器关闭,报的错误如下: 
events.js:136 
throw er; // Unhandled ‘error’ event 
^

Error: read ECONNRESET 
at _errnoException (util.js:999:13) 
at TCP.onread (net.js:629:25) 
解决:

删除node_modules/ws目录,然后在项目目录启动命令行,输入 
npm install ws@3.3.2

等ws安装完,再启动服务器,此时再刷新就不会报错了,这个问题的原因就是ws模块的bug,3.3.2版本的ws模块修复了问题。

2、

问题:在组件件使用ionic自带的标签元素

Uncaught Error: Template parse errors:
'ion-icon' is not a known element:
1. If 'ion-icon' is an Angular component, then verify that it is part of this module.
2. If 'ion-icon' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

解决:

加入IonicModule

import { NgModule } from '@angular/core';
import { MultiAreaComponent } from './multi-area/multi-area';
import { IonicModule } from 'ionic-angular';
@NgModule({
    declarations: [MultiAreaComponent],
    imports: [IonicModule],
    exports: [MultiAreaComponent]
})
export class ComponentsModule {}
3、

最新文章

  1. hibernate 的三种状态 如何转化的。
  2. Myeclipse 安装svn插件
  3. Linux系统入门学习:在CentOS上安装phpMyAdmin
  4. ASP.NET Core环境配置
  5. Python 实例: 备份文件
  6. 我用dedecms有感
  7. ###Markdown初步学习
  8. php中socket的使用 方法简介
  9. 激光相机数据融合(5)--Gazebo仿真数据融合
  10. keepalived双机热备nginx
  11. 第一次作业:扑通扑通 我的IT
  12. HBuilder
  13. 【jQuery】(5)---jQuery CSS
  14. 局域网ARP攻击防护
  15. python----集合用法总结
  16. navicate使用小技巧
  17. SVN提交强制输入日志信息
  18. SQL Server 查询性能优化——创建索引原则(一)
  19. 【xsy1058】 单词 乱搞
  20. 二、Unity Editor模式下,操作选中对象

热门文章

  1. [Mini Programe] Upload Images
  2. iOS8開始默认语言有变化
  3. Windows 9立即公布了
  4. 关于require.js的用法总结
  5. UIView convertRect
  6. JXLS-----JXLS导出Excel
  7. java梳理-反射
  8. java学习笔记:Eclipse打开现有项目
  9. openstack instance resize to rebuild
  10. P3309 [SDOI2014]向量集