TypeError: Cannot read property 'newLine' of undefined

背景:今天安装了新版本的@angular-cli 然后之前的项目就这样了



解决方案:

  • 卸载angular-cli

    npm uninstall -g angular-cli @angular/cli
  • 缓存
    npm cache clean
  • 重新安装(一定记得配镜像,好慢好慢的)
    npm install -g @angular/cli@latest


End

时间: 2025-01-08 16:53:40

TypeError: Cannot read property 'newLine' of undefined的相关文章

报错-Uncaught TypeError: Cannot read property 'options' of undefined

问题描述 Uncaught TypeError: Cannot read property 'options' of undefined 使用easyui 循环添加tabs for(var i=0;i<9;i++){ $("#tt").tabs('add',{ title:'aaa', content:"bbbb", closable:true, }); } 只进行了一次添加,然后终止.经浏览器调试 在jquery.easyui.min.js 3648行中报了

解决sweetalert 无故报错 elem.className.replace Uncaught TypeError: Cannot read property &amp;#39;className&amp;#39; of null

今天碰到这么一个问题,在使用sweetalert的时候时有时无会报错  elem.className.replace Uncaught TypeError: Cannot read property 'className' of null  很简单,debug源码,发现elem在有时候会为空,为空的时候抛出异常,修改如下代码即可解决该问题  效果:  

Cannot read property &amp;#39;apply&amp;#39; of undefined

...TypeError: Cannot read property 'apply' of undefined :一般都是作用域不对 ...TypeError: Cannot read property 'Anything' of undefined :一般都是变量未传入

javascript-jquery如何设置一个动态创建的 $(&amp;amp;#39;#&amp;amp;#39;).append(&amp;amp;#39;&amp;amp;#39;)中的ID?并利用它

问题描述 jquery如何设置一个动态创建的 $('#').append('')中的ID?并利用它 就比如像这样的: <script type="text/javascript"> var number=0; function next(){ $('#showdata').append('<input class="number_showdata" id="showdataid'+number+'" type="tex

jQuery Uncaught TypeError: Cannot read property param

在不需要验证select时,提示错误 Uncaught TypeError: Cannot read property 'param' of null 在查看源代码时,发现在select不加任何事件时,下面的这个函数会出问题: dataRules: function( element ) { var method, value, rules = {}, $element = $(element); for (method in $.validator.methods) { value = $el

SharePoint 2013 Error - TypeError: Unable to get property &amp;#39;replace&amp;#39; of undefined or null reference

错误信息 TypeError: Unable to get property 'replace' of undefined or null referenceTypeError: Unable to get property 'replace' of undefined or null reference TypeError: Unable to get property 'replace' of undefined or null referenceTypeError: Unable to g

[java] javax.el.PropertyNotFoundException: Property &amp;#39;id&amp;#39; not found on type bean.Student

问题提出: 在使用MyEclipse开发Java Web时,调用DAO和Java Bean出现了如下错误: 严重: Servlet.service() for servlet [jsp] in context with path [/JDBCbyDao] threw exception [An exception occurred processing JSP page /student.jsp at line 3734: 35: <c:forEach items="${ studentL

解决Setting property &amp;#39;source&amp;#39; to &amp;#39;org.eclipse.jst.jee.server的问题

对于这个问题,我相信我的方法已经能帮90%的人解决了! 当你用Eclipse运行web项目的时候,你就会看到控制台出现:WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:firstProject' did not find a matching property.这样的字样,说的是server.xml的S

Mybatis中传参包There is no getter for property named &amp;#39;XXX&amp;#39; in &amp;#39;class java.lang.String&amp;#39;

一.发现问题 <select id="queryStudentByNum" resultType="student" parameterType="string">   select num,name,phone from student  <where> <if test = " num!=null and num!='' ">AND num = #{num}</if><