Docs example of sending a message from MAIN world CS to background throws an error.

When trying to send a message to background thread from MAIN world CS I get this error:
Error: Extension runtime is not available

Specifically this example in docs: https://docs.plasmo.com/framework/messaging#:~:text=contents/componentInTheMainWorld.tsx
Plasmo Docs
The Plasmo messaging API is a powerful tool for sending real-time messages between different parts of your extension.
Messaging API – Plasmo
Was this page helpful?