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_modules 2、npm install 重新安装原创 2018-04-18 12:49:18 · 596 阅读 · 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 · 2546 阅读 · 1 评论 -
Angular CLI升级和更新
方法一 npm uninstall -g angular-cli npm cache clean npm install -g @angular/cli@latest方法二 rm -rf node_modules npm uninstall --save-dev angular-cli npm install --save-dev @angular/cli@latest npm install原创 2018-01-19 11:23:37 · 13039 阅读 · 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 · 1826 阅读 · 0 评论 -
卸载angular-cli不成功的强制删除方式
前言 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;我们在卸载angular-cli时常用的命令是 npm uninstall -g angular-cli npm cache clean -f &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;此方法不通时 npm uni原创 2018-05-30 22:19:50 · 7637 阅读 · 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.7601 npm ERR! argv xxx/xxxx 错误原因及解决方式 &nbs...原创 2018-11-13 20:01:37 · 548 阅读 · 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 · 5236 阅读 · 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 · 1130 阅读 · 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 · 14605 阅读 · 1 评论
分享