Error: Potential listener leak detected - FROM importing code library!

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets)

In Plasmic studio, a large error appears on right of page “potential listener LEAK detected…” when adding a dynamic value to an element, after clicking the “switch to code” screen button.

This occurs if any code libraries are installed from the Plasmic studio component store.

This makes it very hard to use Plasmic studio and is very annoying.

What are the reproduction steps?

Video demo: 2024-07-31 11-18-04 - Plasmic support listener leak error.mp4 - Google Drive

  1. Create a new app using the App starter template
  2. Edit a text element: add dynamic value then click “switch to code”. No error message. All OK so far
  3. Click the blue “+” button
  4. Select “code libraries” and then date-fns (or any other code library). Wait for it to install
  5. Edit a text element: add dynamic value, then click “switch to code”. You’ll now get this error message on right of screen

This occurs in latest version of chrome, even if I use an in cognito tab with no browser plugins enabled.

Export of console: studio.plasmic.app-1722389369295.log - Google Drive

Here’s how console looks after the error occurs: 2024-07-31 11-30-54 - Plasmic support chrome console of listener leak.mp4 - Google Drive

Thanks for the report. We’re working on it!

1 Like

Hey @callum_boase, thanks again for your report. The issue has been resolved.

1 Like