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
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
[ ] I would like to fix this BUG via a PR
Code of Conduct
[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.
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 usingnpm run dev:next
everything seems to be working fine however, tha pages client-hub-a, and client-hub-b are throwing an error
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