Skip to content
This repository was archived by the owner on Aug 2, 2026. It is now read-only.
This repository was archived by the owner on Aug 2, 2026. It is now read-only.

Uncaught TypeError: Cannot read property 'querySelector' of undefined #508

Description

@joaodematejr
  • What operating system are you using? Windows 11
  • What version of Node.js is on your system? v14.18.1

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)
}
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions