zoukankan      html  css  js  c++  java
  • ionic错误

    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、
  • 相关阅读:
    解决Docker安装慢
    Spring Boot源码分析-启动过程
    Ubuntu安装Docker
    Jenkins搭建
    Hexo搭建静态博客站点
    FactoryBean简介以及Mybatis-Spring应用
    ArrayList源码分析
    Spring AOP-用代理代替繁琐逻辑
    Spring Validation-用注解代替代码参数校验
    Netty学习(4):NIO网络编程
  • 原文地址:https://www.cnblogs.com/yuyedaocao/p/10182424.html
Copyright © 2011-2022 走看看