-
Notifications
You must be signed in to change notification settings - Fork 120
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
ReferenceError: window is not defined in v2.3.1 #133
Comments
I have the same problem here: "moment-duration-format": "^2.2.2" ReferenceError: window is not defined |
OK OK. Sigh. |
Hello, I found two temp solutions:
Ref: webpack/webpack#7112 (comment) Thanks in advance. |
Got the window error on runkit but locally I get this with v2.3.1 and v2.3.0:
File content: const moment = require('moment'); // version 2.24.0
require('moment-duration-format'); // version 2.3.1
const dt = moment.duration(process.uptime()).format('DD MM');
console.log(dt); Downgrading to 2.2.2 has it work just fine. |
Thanks @hyuraku. I've published version 2.3.2 which should fix this issue. |
I didn't seem to have permission to reopen issue #131, hence creating this new one.
The fix of PR #132 didn't seem to be sufficient:
Known workaround: pin to version ~2.2.2.
The text was updated successfully, but these errors were encountered: