redux-devtools-extension icon indicating copy to clipboard operation
redux-devtools-extension copied to clipboard

No store found. Make sure to follow the instructions. (Firefox, first launch devtools)

Open mpstv opened this issue 3 years ago • 3 comments

Hi everyone.

I have a problem using the devtools extension in Firefox. I have found several issue with this error in the repository, but I'm not sure if it is the same. If you consider this issue a duplicate - feel free to close it, but I still hope that the example and description I gave will help you figure out what the matter is.

For reproducing this problem i created repository (using angular + ngxs store). The problem is that when open site in Firefox then press Ctrl+Shift+i and open Redux tab - it shows "No store found. Make sure to follow the instructions".

изображение

If not close devtools window and refresh page - all works fine. If open devtools via button on the end address bar - all works file. изображение

I using this software: OS: Windows 10 Browser: Firefox version 84.0.1 (64-bit), Redux DevTools Extension version 2.17.1.

mpstv avatar Jan 01 '21 17:01 mpstv

has anyone found if this is a bug, I have the same issue using react, also i have tested this on firefox and chrome on Ubuntu 20.04

the5rb avatar Jan 18 '21 18:01 the5rb

I am having the same bug with Firefox on macOs. Happens with state management solutions Akita and Elf. image

The address bar dropdown version blocks a lot of the UI so I prefer using the dev tools one.

In Edge everything works as expected.

Edit: I am assuming this error (on the left) is related as it does not happen when the extension is disabled (on the right) image

petterhoel avatar Nov 25 '21 18:11 petterhoel

@petterhoel Thank you for pointing out the console errors. I hadn't realized that they might be coming from the Redux DevTools extension. I've added 'unsafe-inline' to the script-src directive in my CSP and the extension now works in Firefox. 🎉

The full CSP for script-src directive that I'm using with NgRx (when serving via the Angular CLI) is:

"script-src 'self' 'unsafe-eval' 'unsafe-inline'"

It would be nice to avoid having to use 'unsafe-inline', but at least I only need it at development time, so it's not too bad.

reduckted avatar Apr 29 '22 04:04 reduckted