Skip to content
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

Allow use debug bundle in Node.js environment #31

Closed
alanshaw opened this issue Jun 21, 2018 · 1 comment
Closed

Allow use debug bundle in Node.js environment #31

alanshaw opened this issue Jun 21, 2018 · 1 comment

Comments

@alanshaw
Copy link

@alanshaw alanshaw commented Jun 21, 2018

/Users/alan/Code/project/node_modules/redux-bundler/dist/redux-bundler.js:1891
        self.logSelectors && self.logSelectors();
        ^

ReferenceError: self is not defined
    at /Users/alan/Code/project/node_modules/redux-bundler/dist/redux-bundler.js:1891:9
    at /Users/alan/Code/project/node_modules/redux-bundler/dist/redux-bundler.js:52:16
    at Object.dispatch (/Users/alan/Code/project/node_modules/redux-bundler/dist/redux-bundler.js:37:12)
    at Timeout._onTimeout (/Users/alan/Code/project/node_modules/redux-bundler/dist/redux-bundler.js:1619:27)
    at ontimeout (timers.js:427:11)
    at tryOnTimeout (timers.js:289:5)
    at listOnTimeout (timers.js:252:5)
    at Timer.processTimers (timers.js:212:10)

I added global.self = global prior to calling store.doEnableDebug() and it started working so I think it's a simple fix.

@HenrikJoreteg
Copy link
Owner

@HenrikJoreteg HenrikJoreteg commented Jun 7, 2019

just published v25.0.0, it includes a fix for this, thanks! https://github.com/HenrikJoreteg/redux-bundler/blob/master/docs/misc/changelog.md#change-log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants