lxieyang / chrome-extension-boilerplate-react

A Chrome Extensions boilerplate using React 18 and Webpack 5.
MIT License
3.42k stars 1.07k forks source link

Issue with Content Script Running #169

Closed Joetoledano closed 1 year ago

Joetoledano commented 1 year ago

Hi!

I followed the instructions in the Readme and am running the app but am not seeing any of the console.log's from the Content js file in my browser console.

I did not make any changes outside of the names/descriptions.

Is this supposed to be happening?

bramburn commented 1 year ago

check if the hosts are set up correctly in your manifest.

sumsalabim commented 1 year ago

Same issue there, there is no way for me to display console logs in the console, tried to add them everywhere

In the Background console tho, this error occurs from time to time:

image
bramburn commented 1 year ago

can you check if the script is being loaded to the page? Regards,

B.Ramburn BSc (Hons) LLM MCIArb Snr. Quantity Surveyor & Director at Icelabz

On Mon, 8 May 2023 at 11:33, Kacper Sitarz @.***> wrote:

Same issue there, there is no way for me to display console logs in the console, tried to add them everywhere

In the Background console tho, this error occurs from time to time: [image: image] https://user-images.githubusercontent.com/37812273/236802376-230d728b-71c7-4c8c-990a-6c0b29a0a6aa.png

— Reply to this email directly, view it on GitHub https://github.com/lxieyang/chrome-extension-boilerplate-react/issues/169#issuecomment-1538147411, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUTT3OOZ7HDK2VSHWFKRK3XFDDY5ANCNFSM6AAAAAAXZHJPYM . You are receiving this because you commented.Message ID: @.*** com>

Joetoledano commented 1 year ago

@bramburn, this issue is sorted for me - however now running into this issue

theUncaught Error: SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS

bramburn commented 1 year ago

That's self explanatory. Any code you're loading from 3rd party must be HTTPS

On Sat, May 13, 2023, 6:58 PM Joseph Toledano @.***> wrote:

@bramburn https://github.com/bramburn, this issue is sorted for me - however now running into this issue

theUncaught Error: SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS

— Reply to this email directly, view it on GitHub https://github.com/lxieyang/chrome-extension-boilerplate-react/issues/169#issuecomment-1546720536, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUTT3PCM3JSYDEFH5D6NO3XF7DU7ANCNFSM6AAAAAAXZHJPYM . You are receiving this because you were mentioned.Message ID: @.*** com>

bramburn commented 1 year ago

I've had some plugins where I cannot use the webserver so I have to build every time

On Sun, May 14, 2023, 8:58 AM B.Ramburn @.***> wrote:

That's self explanatory. Any code you're loading from 3rd party must be HTTPS

On Sat, May 13, 2023, 6:58 PM Joseph Toledano @.***> wrote:

@bramburn https://github.com/bramburn, this issue is sorted for me - however now running into this issue

theUncaught Error: SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS

— Reply to this email directly, view it on GitHub https://github.com/lxieyang/chrome-extension-boilerplate-react/issues/169#issuecomment-1546720536, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUTT3PCM3JSYDEFH5D6NO3XF7DU7ANCNFSM6AAAAAAXZHJPYM . You are receiving this because you were mentioned.Message ID: @.*** .com>

Joetoledano commented 1 year ago

Ah cool, will close this then.

Thanks so for much the help!

bramburn commented 1 year ago

No problem! Regards,

B.Ramburn BSc (Hons) LLM MCIArb Snr. Quantity Surveyor & Director at Icelabz

On Mon, 15 May 2023 at 08:03, Joseph Toledano @.***> wrote:

Ah cool, will close this then.

Thanks so for much the help!

— Reply to this email directly, view it on GitHub https://github.com/lxieyang/chrome-extension-boilerplate-react/issues/169#issuecomment-1547036571, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUTT3O2OYQIGUHTXEVXI6TXGFXENANCNFSM6AAAAAAXZHJPYM . You are receiving this because you were mentioned.Message ID: @.*** com>