Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/393.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 无法读取属性';hasAttribute';空的_Javascript_Laravel_Npm_Mdbootstrap - Fatal编程技术网

Javascript 无法读取属性';hasAttribute';空的

Javascript 无法读取属性';hasAttribute';空的,javascript,laravel,npm,mdbootstrap,Javascript,Laravel,Npm,Mdbootstrap,我对材料设计引导有问题,我用NPM添加了它,但当我在我的网站上时,我遇到了以下错误: Uncaught TypeError: Cannot read property 'hasAttribute' of null at r (app.js:19116) at Module.o.m.n (app.js:19116) at o (app.js:19116) at app.js:19116 at app.js:19116 at Object../node

我对材料设计引导有问题,我用
NPM
添加了它,但当我在我的网站上时,我遇到了以下错误:

Uncaught TypeError: Cannot read property 'hasAttribute' of null
    at r (app.js:19116)
    at Module.o.m.n (app.js:19116)
    at o (app.js:19116)
    at app.js:19116
    at app.js:19116
    at Object../node_modules/mdb-ui-kit/js/mdb.min.js (app.js:19116)
    at __webpack_require__ (app.js:19361)
    at Object../resources/js/app.js (app.js:1845)
    at __webpack_require__ (app.js:19361)
    at app.js:19500
问题出在哪里:
hasaAttribute(“数据mdb无jquery”)
。我不知道怎样才能纠正这个问题


谢谢你的回答

您能将代码块发送到使用此行的位置吗


无法读取null的属性“hasAttribute”
表示您正在执行类似于
myVariable.hasAttribute(…)
的操作,但是
myVariable
的值为null或未定义,因此没有可调用的函数。

这个答案对您有帮助吗?这是另一个问题,但我最终发现了它,这是由于没有更新mdbYes的代码,我有一段mdb无法识别的代码,可能是由于从引导4切换到5?