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

Homebrew 10.17.4 upgrade issue #1288

Closed
chenrui333 opened this issue Jun 5, 2019 · 2 comments
Closed

Homebrew 10.17.4 upgrade issue #1288

chenrui333 opened this issue Jun 5, 2019 · 2 comments

Comments

@chenrui333
Copy link

Relates to Homebrew/homebrew-core#40670
Build ref: https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/43164/version=mojave/console

Local debug log:

$ DEBUG=1 /usr/local/Cellar/balena-cli/10.17.4/bin/balena login --credentials --email [email protected] --password secret
ReferenceError: window is not defined
    at intlNumberFormatFormatter (/usr/local/Cellar/balena-cli/10.17.4/libexec/lib/node_modules/balena-cli/node_modules/moment-duration-format/lib/moment-duration-format.js:1723:9)
    at featureTestFormatter (/usr/local/Cellar/balena-cli/10.17.4/libexec/lib/node_modules/balena-cli/node_modules/moment-duration-format/lib/moment-duration-format.js:684:28)
    at /usr/local/Cellar/balena-cli/10.17.4/libexec/lib/node_modules/balena-cli/node_modules/moment-duration-format/lib/moment-duration-format.js:1728:29
    at Object.<anonymous> (/usr/local/Cellar/balena-cli/10.17.4/libexec/lib/node_modules/balena-cli/node_modules/resin-cli-visuals/build/widgets/progress.js:24:34)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function._load (/usr/local/Cellar/balena-cli/10.17.4/libexec/lib/node_modules/balena-cli/node_modules/raven/lib/instrumentation/instrumentor.js:34:35)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/Cellar/balena-cli/10.17.4/libexec/lib/node_modules/balena-cli/node_modules/resin-cli-visuals/build/visuals.js:20:13)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
@pdcastro
Copy link
Contributor

pdcastro commented Jun 5, 2019

Thank you for reporting this issue -- it was fixed in CLI version 10.17.5 (and previously reported as issue #1281). By the way, if you are using Homebrew (which is not maintained by balena), you may be interested in our brand new (beta) native installer for macOS, released just yesterday alongside CLI v11.0.0. Have a look at the updated installation instructions:
https://github.com/balena-io/balena-cli/blob/master/INSTALL.md

(The root cause of the "ReferenceError: window is not defined" was an upstream dependency bug in a npm package called moment-duration-format. Upstream issue: jsmreese/moment-duration-format#133)

@pdcastro
Copy link
Contributor

pdcastro commented Jun 6, 2019

The native macOS installer, or the standalone zip packages, have the advantage that they include pre-built (pre-compiled) binaries, avoiding the main sources of errors that are common to the npm and homebrew installations.
I am closing this issue with the understanding that it was fixed, but feel free to reopen it as needed.

@pdcastro pdcastro closed this as completed Jun 6, 2019
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

2 participants