I know that question has been repeatedly asked in different ways, but I tried to go through all the answers (hopefully I didn\'t miss anyone) and none of them worked for me.
@apsillers is correct. Also don't forget to return true in your content-script listener or it might close too early.
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { console.log(message) return true });