解決Cannot read property 'range' of null 錯誤
vue工程npm run serve/start/dev啟動時,node_modules檔案報:Cannot read property 'range' of null 錯誤
改問題是"babel-eslint"版本更新問題導致的;
給大家一個最簡單粗暴的解決方案:
在專案裡找到對應的工程:直接刪除裡面的node_modules資料夾,然後重新npm install下就可以了;
node_modules檔案內容較多,建議用cnpm install,會更快一點。
重新install後能正常跑起來了.
tips:
當清node_modules 出現某一些包錯誤時候,查不到原因時候,可以先清除快取試試。
rm -rf node_modules npm cache clean npm install
npm cache clean // 暴力清快取:npm cache cle
相關推薦
eslint Cannot read property 'range' of null錯誤
.get temp 項目 重新 pos spa source list modules 手動添加的配置,2個項目OK,還個項目 運行報錯 Cannot read property ‘range‘ of null TypeError: Cannot read prop
解決React Native報錯:Cannot read property 'bindings' of null
http://www.blogdaren.com/post-2432.html 問題背景: 升級 React Native 0.55.4 --> React Native 0.56.0 後,執行報錯:Cannot read property 'bindin
“js Uncaught TypeError: Cannot read property 'style' of null”——問題解決思路
1. 你呼叫屬性的object是空的,你看看是不是沒有找到你想要的物件,可能你呼叫的物件(物件名寫錯)呼叫錯了; 2. 有重複的id 3. 在頁面還沒載入完成就獲取那個元素的屬性,導致獲取屬性失敗( &nbs
表自關聯時,解決列表顯示頂級物件出現“Cannot read property 'xxx' of null”的問題
當表設計中涉及自關聯時,同時在列表中顯示自關聯物件的屬性,如果自關聯物件為null,則渲染頁面時會出現Cannot read property 'xxx' of null問題 問題描述 例如下表中parent的值是test_type表的id create table test_type ( id b
Three.js three.js Uncaught TypeError: Cannot read property 'getExtension' of null
UNC 錯誤 顯示 nbsp 是不是 cannot three.js error: get 在調試Three.js執行加載幕布的時候,突然爆出這個錯誤three.js Uncaught TypeError: Cannot read property ‘getExtensio
mui switch 開關js控制打開 & Cannot read property 'toggle' of null
code UNC switch attr span bsp att pro cannot //打開開關 mui(‘#mySwitch‘).switch().toggle(); //小開關打開異常的情況解決辦法$(".mui-switch-handle").attr("sty
JavaScript出現 Uncaught TypeError: Cannot read property 'innerHTML' of undefined錯誤
原因: 意思就是當前的那個標籤沒有定義,原因是html的執行順序是從上到下,在標籤還沒有載入的時候該方法就被呼叫了, 所以會出沒有定義的錯誤 解決辦法有兩個: 一、最直接的方法就是將JavaScript程式
ExtJS報錯 Uncaught TypeError: Cannot read property 'parentNode' of null
ext-all.js:21 Uncaught TypeError: Cannot read property 'parentNode' of null at A.updateColumns (ext-all.js:21) at A.onUp
Uncaught TypeError: Cannot read property 'username' of null常見錯誤
》 在一個web 向專案中,user登入狀態顯示模組,有一個異常: Uncaught TypeError: Cannot read property ‘username’ of null 》 是因為:username 空指標 檢查user模組程式碼
Uncaught TypeError: Cannot read property 'addEventListener' of null
<script type="text/javascript"> var body1=document.getElementById('#body') </script> 錯誤提示:Uncaught TypeE
EasyUI datagrid報錯:Uncaught TypeError: Cannot read property 'width' of null
採用EasyUI的 datagrid 展示資料,報錯:Uncaught TypeError: Cannot read property ‘width’ of null 解決辦法: columns引數寫法錯誤,該引數有兩個[],少寫會報該錯誤。 columns:[[ {field:‘c
網頁html錯誤:Uncaught TypeError: Cannot read property 'addEventListener' of null
<head> <meta charset="utf-8"> <title>菜鳥教程(runoob.com)</title> <script> document.getElementById("myBtn").addEventList
報錯 TypeError: Cannot read property 'parentNode' of null
我是在迴圈的時候報的這個錯,後來解決的話是 如果不是以下的問題可以重新賦值來做。 JSON.parse(JSON.stringify(this.moreImageList)) 序列化然後在轉化為物件,因為剛開始的
Cannot read property 'nodeType' of null; audio元素預設樣式下載按鈕
1.chrome-->console丟擲如下錯誤: Uncaught TypeError: Cannot read property 'nodeType' of null 錯誤原因:從stackoverflow上查了,這個bug可能是由於dom元素未載入完而先執行了jquery程式
ExtJS-Cannot read property 'childNodes' of null
在使用ExtJS開發grid表格時,其中有一列嵌入了combo元件;程式碼如下: { xtype: 'gridcolumn', menuDisabled: true, sortable: false,
Egret(白鷺引擎)——“TypeError: Cannot read property 'asCom' of null”
前言 相信我,這個錯誤新手都不陌生:TypeError: Cannot read property 'asCom' of null 還有,一定要看我上一篇,哦不(人家應該是報了這個錯,才找到看到這篇文章的) 錯誤描述 專案背景:Egret+fairyGui 1.官方案例我可以跑通
Uncaught TypeError: Cannot read property 'setAttribute' of null
Uncaught TypeError: Cannot read property 'setAttribute' of null 其實就是js中空指標異常 h5splayer.js:1 Uncaught TypeError: Cannot read pr
前臺報錯:Uncaught TypeError: Cannot read property '0' of null
錯誤現象: var div1=mycss[0].style.backgroundColor; //這一行提示360和chrome提示:Uncaught TypeError: Cannot read property '0'&nb
jquery.dataTables.min.js:36 Uncaught TypeError: Cannot read property 'length' of null
jquery.dataTables.min.js:36 Uncaught TypeError: Cannot read property 'length' of null 1.出現上述錯誤,要檢視自己要輸出的資料中有沒有為null的。 2.就是上面兩種
[Vue warn]:Error in render: "TypeError: Cannot read property 'length' of null"
錯誤定位不到,不知道哪裡有錯。當把music-list元件的props:{songs:default:}中的null改為【】就不會報錯,類似這種錯誤,我們如何定位問題?比如這種錯誤,根本不能告訴我們錯誤程式碼行????? 首先,根據錯誤提示你可以知道報錯是哪個元件,其次順著錯誤堆疊往