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

Angular 2无法读取null的属性’config’

发布时间:2020-12-17 07:57:43 所属栏目:安全 来源:网络整理
导读:我有Angular 2的问题.当我想启动服务器它得到这个: $ng serveCannot read property 'config' of nullTypeError: Cannot read property 'config' of nullat Class.run (C:UsersDamienDesktopapplicationnode_modules@angul arclitasksserve.js:22:6
我有Angular 2的问题.当我想启动服务器它得到这个:
$ng serve
Cannot read property 'config' of null
TypeError: Cannot read property 'config' of null
at Class.run (C:UsersDamienDesktopapplicationnode_modules@angul arclitasksserve.js:22:63)
at check_port_1.checkPort.then.port (C:UsersDamienDesktopapplicationnode_modules@angularclicommandsserve.js:103:26)
at process._tickCallback (internal/process/next_tick.js:103:7)

我重新安装了CLI,其他任何工作都没有.我可能是json文件的东西?

我找到了解决方案! 在我的情况下,我将项目移动到另一个目录. 有一个名为.angular-cli的隐藏文件 在旧项目中显示隐藏文件并复制此文件并将其粘贴到新的扩展中.这解决了我的问题.

(编辑:李大同)

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

    推荐文章
      热点阅读