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

currentQueue is null while using sinon.useFakeTimers() #58

Closed
ilgooz opened this issue May 19, 2016 · 1 comment
Closed

currentQueue is null while using sinon.useFakeTimers() #58

ilgooz opened this issue May 19, 2016 · 1 comment

Comments

@ilgooz
Copy link

ilgooz commented May 19, 2016

the line where the error occurs. defunctzombie/node-process@774a338#diff-de1a5a7de991855714cdf433e9f8be96R11

I've a test setup with karma and webpack. I'm getting this error on Chrome 50.0.2661.102 (64-bit). I've also tried with 1.12.2, 1.17.3 and pre 2.0 versions of sinon but still no luck. there is no error when I just use sinon on bare html page without any transpilers, webpack or libraries. this issue seems to related with this defunctzombie/node-process#49

I can inspect this error and help you to reproduce but I like get a few quick ideas about how to resolve this first, if you guys run across with the same problem before.

thank you.

@ilgooz
Copy link
Author

ilgooz commented May 19, 2016

solved. the problem is my process module was an older version which doesn't check currentQueue before proceeding. https://github.com/defunctzombie/node-process/blob/09adde8cb8bd9c61097c5742cd870d4c4708a223/browser.js#L10

I've done a few things but I guess the problem was solved after rm -rf node_modules and reinstalling. just make sure your process module is => 0.11.3. webpack uses process module within it's browser shim module here https://github.com/webpack/node-libs-browser/blob/a6cef60acb59be7627d228e42201b9e55f46761b/package.json#L23

@ilgooz ilgooz closed this as completed May 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant