browserify/timers-browserify

ReferenceError: self is not defined

Closed this issue · 4 comments

My webpack builds started breaking recently, I think because I depend on npm, and npm depends on this. It could be an issue with my build config, but the builds started breaking around yesterday for me with no changes to our code.

I think the code that is causing our build to fail is the reference to self here: 90cd332#diff-7a9076d6d94e62c13d641aa71f19ae8eR55

My build problems go away with npm install timers-browserify@2.0.4

Thanks for the report!

Does changing to a check like typeof self === "undefined" instead fix the current version for you?

That should do it

Okay, I've published a fix as v2.0.6. Let know if that works for you. Thanks for the feedback!

Yup, removed =2.0.4 from my package.json, build still works. Thanks for the quick fix!