Kevin Powell - CommunityKP-C
Kevin Powell - Community16mo ago
24 replies
Faker

Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true. . .

Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

Hello guys, sorry to disturb you all, can someone explain what this error is all about please, I didn't understand why I obtain this error, here is my script:

const textBox = document.querySelector('#textBox');

textBox.addEventListener('keydown', (event) => {
    console.log(`you pressed: ${event.key}`);
})
Was this page helpful?