-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught Error: PixieBrix contentScript already installed #428
Comments
Yep, I get the error almost always while using the dev tools (even when using Webpack 4). The error itself doesn't hurt anything - it's just a backstop against loading the contentScript module multiple times which would break things An alternative might be split the content script entry point, and do an async import of the main functionality it hasn't already been loaded. I'm not sure what the performance hit on load time for that would be, though There's a couple places (including dev tools) where we inject the content script if it hasn't already been injected. Here's what's likely the source of the error message you're seeing:
I suspect there's a race condition where the dev tools doesn't see the content script as having already been installed I think it could be good to investigate this, as it might also reveal some opportunities to reduce latency in content script loading |
That might somehow be related to this limitation?: w3c/webextensions#8. I haven't seen that warning before -- probably be a race condition on when various browser navigation events are happening? I think |
Are you seeing this issue? I'm seeing one error in my Webpack 5 branch and 2 errors on
main
, whether it's the prod or dev build.Possibly related to #398
Screenshot taken with:
main
branchnpm run watch:chrome
The text was updated successfully, but these errors were encountered: