![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
angular2+ 开发问题
idomyway
这个作者很懒,什么都没留下…
展开
-
You seem to not be depending on “@angular/core”. This is an error
问题描述在ng serve angular项目时遇到You seem to not be depending on “@angular/core”. This is an error……解决方法:1、删除node_modules2、npm install 重新安装原创 2018-04-18 12:49:18 · 497 阅读 · 0 评论 -
angular2+ --Template parse errors: Can't bind to 'xxx' since it isn't a known native property
报错原因 插值表达式和属性绑定只能设置属性–property,不能设置 attribute。实例<tr><td colspan="{{1 + 1}}">Three-Four</td></tr>报错Template parse errors:Can't bind to 'colspan' since it isn't a known native property代码修改<table原创 2018-04-26 23:39:00 · 2463 阅读 · 1 评论 -
Angular CLI升级和更新
方法一 npm uninstall -g angular-clinpm cache cleannpm install -g @angular/cli@latest方法二 rm -rf node_modulesnpm uninstall --save-dev angular-clinpm install --save-dev @angular/cli@latestnpm install原创 2018-01-19 11:23:37 · 12771 阅读 · 4 评论 -
Angular/ionic 加载ArcGIS API for JavaScript报错:TypeError:esri_loader_1.bootstrap is not a function
前言 在做ionic3+/Angular 加载ArcGIS API for JavaScript,出现以下错误: 如何在Angular项目中使用ArcGIS API for JavaScript请参考:https://blog.csdn.net/idomyway/article/details/...原创 2018-06-06 22:02:57 · 1694 阅读 · 0 评论 -
卸载angular-cli不成功的强制删除方式
前言&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;我们在卸载angular-cli时常用的命令是npm uninstall -g angular-clinpm cache clean -f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;此方法不通时npm uni原创 2018-05-30 22:19:50 · 7319 阅读 · 1 评论 -
安装固定版本Angular CLI 报错:addLoacl Could not install/Windows_NT 6.1.7601
前言 在本机安装配置指定版本的Angular CLI过程中,使用npm安装遇到以下错误,经过在网上查询无果后,在npm网站上找到报错原因。npm ERR! addLocal Could not install\npm ERR! Windows_NT 6.1.7601npm ERR! argv xxx/xxxx错误原因及解决方式&nbs...原创 2018-11-13 20:01:37 · 479 阅读 · 0 评论 -
Angular 懒加载报错:TypeError:undefined is not a function
前言 Angular日常采坑 在Angular中尝试进行懒加载时,遇到以下错误:TypeError:undefined is not a function导致原因 在AppRoutingModule使用懒加载如下:const routes: Ro...原创 2018-11-21 17:48:46 · 4940 阅读 · 2 评论 -
Angular 懒加载报错:Error:Cannot find 'default' in 'xx/xx/xx.module'
前言 Angular日常采坑在Angular中尝试进行懒加载时,遇到以下错误:Error:Cannot find ‘defaut’in ‘xx/xx/xx’导致原因 在AppRoutingModule使用懒加载如下:const routes: Routes = [ { path: '', pathM...原创 2018-11-21 18:01:53 · 1028 阅读 · 1 评论 -
npm install出现Unexpected end of JSON input while parsing near错误解决方法
前言 在创建Angular项目的时候,出现以下错误:Unexpected end of JSON input while parsing near解决方法npm cache clean --force 即可解决pm install出现”Unexpected end of JSON input ...原创 2018-11-21 18:14:23 · 14536 阅读 · 1 评论