open-source-labs / Reactime

Developer tool for time travel debugging and performance monitoring in React applications.
https://www.reacti.me
MIT License
2.17k stars 200 forks source link

Unchecked runtime.lastError: The message port closed before a response was received. #205

Closed haejinjo closed 4 years ago

haejinjo commented 4 years ago

image

This error (pictured above) shows up on the main browser console (not the Reactime extension console) occasionally, not always. Still not sure what causes it, or what functionality exactly is affected, if any at all.

The previous iteration team seemed to attempt solving this issue by returning true at the end of the port.onMessage and chrome.runtime.onMessage event handlers in our background.js script file. One of these attempts is reproduced in screenshot-form, below: image

Why it might be happening? Issue #206 : an uncaught error in our extension that breaks the chrome runtime connection.

kevinfey commented 4 years ago

This issue does not come up in the package version on the Chrome package. Issue came from updating unpacked chrome dev tool during development.