PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.14k stars 350 forks source link

with-messaging example has a bug [BUG] #838

Open Loque18 opened 9 months ago

Loque18 commented 9 months ago

What happened?

I started a new project ( --with-messaging example )

npm create plasmo -- --with-messaging

after installing the dependencies and placing the extension id in the .env file, I run the extension using npm run dev:plasmo and I run the website using npm run dev:next

everything seems to be working fine however, tha pages client-hub-a, and client-hub-b are throwing an error

image

I have seen so many other issues with the same problem "chrome.runtime is undefined"

but I thought this would work since it was an official example, what I need to do is to inject an object in the window, that include a function

thank you!

Version

Latest

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

(OPTIONAL) Contribution

Code of Conduct