question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use Redux DevTools in a chrome extension

See original GitHub issue

Hi there,

I’m developing a chrome extension and the redux-devtools-extension doesn’t seem to find the store. The window.__REDUX_DEVTOOLS_EXTENSION__ (or window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) are not getting defined, from what I could gather. I’m guessing the problem is that redux-devtools-extensions doesn’t work on chrome-extension://<extensionID>/<page> urls. Is there a way to fix that?

My configuration is as follows:

// configureStore.js
import { createStore, combineReducers, applyMiddleware, compose } from 'redux'
import thunk from 'redux-thunk'

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose

export default () => {
  const store = createStore(
    combineReducers({
      // my reducers
    }),
    composeEnhancers(applyMiddleware(thunk))
  )

  return store
}
redux@3.7.2
redux-devtools-extension@2.15.1

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:5

github_iconTop GitHub Comments

8reactions
markbiekcommented, May 11, 2018

@seyaobey I was able to solve it using the following approach

https://viastudio.com/debugging-a-reactjs-chrome-extension/

I also had to run remotedevtools locally: remotedev --hostname=localhost --port=8000 and change the Settings of the RemoteDev popup to Use custom (local) server

3reactions
ackmanxcommented, Jun 3, 2018

@markbiek Thanks for the blog post! Setting up remote-redux-devtools worked very smoothly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redux DevTools
The extension provides power-ups for your Redux development workflow. Apart from Redux, it can be used with any other architectures which handle the...
Read more >
Redux Devtools for Dummies - codeburst
Install Redux browser dev-tools (Chrome and Firefox) · Install dev-tools npm package and import it into store file · Open developer tools with...
Read more >
Setting Up Redux DevTools — A Simple Guide | by Dinesh
Visualizing your states and actions in Redux DevTools Console. 1.Adding Redux DevTools extension to our browser (Google Chrome) Download and ...
Read more >
How To Configure Redux DevTools Within Chrome Inspector ...
I was able to figure this one out by accident. The solution is very technical. You have to click and drag the left...
Read more >
zalmoxisus/redux-devtools-extension - GitHub
from Chrome Web Store; · or download extension. · or build it with npm i && npm run build:extension and load the extension's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found