Closed peterjarosak-st closed 1 year ago
I didn't test the extension on mac since I don't have mac device.
This error is expected. The extension should work despite it. Advanced Extension Reloader expects messages in an offscreen document/separate tab.
What are you trying to do? Are you trying to set up automatic reload? With Advanced Extension Reloader Watch 1 or 2?
If yes, make sure you duplicated your port in the Advanced Extension Reloader settings. Post your Webpack config/Advanced Extension Reloader config here.
You can also try these explames to see if they work for you: https://github.com/loftyshaky/advanced-extension-reloader-examples
Sounds like it's a misunderstanding on my part. I thought the port was something that'd be accessible externally so I could call it from a command line as an alternative to using the watch 1 and 2. Is there a way to simulate the reloaders via command line?
The _watch-ext -c path_toconfig command from Advanced Extension Reloader Watch 1 is supposed to be used in command line. Is this what you need? You call it once, then your extension will reload on file changes.
Yes, you can communicate with Advanced Extension Reloader without Advanced Extension Reloader Watch 1/2. I just created them to simplify things. You can look here to find out how. Here's the most relevant part (sending reload message to Advanced Extension Reloader).
Ok, I understand. This is exactly what I was looking for. Thank you!
Port configured is not running.
After starting it, inspecting the service worker provides the following error:
background.js:2 --------------------------- Code: shr1099 Message: Could not establish connection. Receiving end does not exist. Stack: Error: Could not establish connection. Receiving end does not exist. at (chrome-extension://hagknokdofkmojolcpbddjfdjhnjdkae/background.js:2:287126)
(anonymous) @ background.js:2
Is there some additional software or configuration needed?