加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Angular2之 buglist

发布时间:2020-12-17 08:57:34 所属栏目:安全 来源:网络整理
导读:官网API:https://docs.angularjs.org/api 官网 docs: https://angular.io/docs 对应的中文文档https://angular.cn/docs buglist 1.cant find module @angular/animations/brower $ npm install @angular/animations@latest –save 2.”/animations/browser

官网API:https://docs.angularjs.org/api
官网 docs: https://angular.io/docs
对应的中文文档https://angular.cn/docs

buglist

1.cant find module @angular/animations/brower

$ npm install @angular/animations@latest –save

2.”/animations/browser”’ has no exported member ‘?DomAnimationEngine’
BrowserAnimationModule模块的版本问题,@angular/animations 4.1.3没有问题(这里也不是很固定,打开 package.json和其他版本匹配起来就好)

$ npm install @angular/animations@4.1.3 –save

3.Error: No provider for InjectionToken DocumentToken!
4. cant find module @angular/common/http
只需要重新安装@angular/common即可,即:

$ npm install –save @angular/common

5.跨域请求问题:
Cross-origin redirection to ** denied by Cross-Origin Resource Sharing policy: Origin http://localhost:8101 is not allowed by Access-Control-Allow-Origin.
6. Failed to load resource: Preflight response is not successful

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读