Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3499 Lượt xem

Hi everyone

When I try to open my website it come with the error below and I don't know how to solve the problem:

UncaughtClientError > TypeError

Uncaught Javascript Error > Cannot read properties of null (reading 'querySelector')

TypeError: Cannot read properties of null (reading 'querySelector')

    at iframe.el.addEventListener.once (https://monazaholding.odoo.com/web/assets/2/de0cfb4/web.assets_web.min.js:16028:1266)


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Antonio Cuinica,


The error message you're encountering indicates that your website's JavaScript code is trying to access a DOM element using querySelector, but it is finding null instead. This typically means that the element your code is trying to access does not exist on the page at the time the script runs.


Review the JavaScript code that is causing the error. Look for any querySelector calls and ensure that the selectors are correctly targeting existing elements on your webpage. Ensure that the elements you are trying to select actually exist in the DOM when the script runs.


Hope it helps.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 1 25
908
0
thg 12 24
1362
0
thg 10 24
990
3
thg 7 24
8300
1
thg 12 23
4173