-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Uncaught TypeError: Cannot read property 'querySelector' of undefined #508
Comments
Same problem at win 10, and linux manjaro. |
Hi, Only way is to get rid of rel="import" in favour of other loading mechanism. Env was: Node.js 16.5.0, Chromium 94.0.4606.81, and Electron 15.3.1 |
same problem at win11,node16.5.0 |
some issue: Uncaught TypeError: Cannot read property 'querySelector' of undefined、、、、 |
Uncaught TypeError: Cannot read property 'app' of undefined I have the same problem |
[Mickey]已经收到了,谢谢
|
因为 electron 版本太高,对应的 chromium 版本不支持 Because the electron version is too high, the corresponding chromium version does not support 'HTML imports'. |
That's working for me thank you!! first, delete electron js from node_module then |
Array.prototype.forEach.call(links, (link) => {
let template = link.import.querySelector('.task-template')
let clone = document.importNode(template.content, true)
if (link.href.match('about.html')) {
document.querySelector('body').appendChild(clone)
} else {
document.querySelector('.content').appendChild(clone)
}
})
The text was updated successfully, but these errors were encountered: