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

Flashing a known app crashes the CLI #331

Closed
suda opened this issue Jan 28, 2017 · 1 comment
Closed

Flashing a known app crashes the CLI #331

suda opened this issue Jan 28, 2017 · 1 comment

Comments

@suda
Copy link
Contributor

suda commented Jan 28, 2017

Running:

$ particle flash MY_DEVICE tinker

crashes with:

attempting to flash firmware to your device MY_DEVICE
Flash device failed
TypeError: Cannot convert undefined or null to object
    at Object._addFilesToCompile (/Users/suda/.nvm/versions/node/v6.9.4/lib/node_modules/particle-cli/oldlib/ApiClient.js:537:21)
    at Object.flashDevice (/Users/suda/.nvm/versions/node/v6.9.4/lib/node_modules/particle-cli/oldlib/ApiClient.js:474:8)
    at flashyFlash (/Users/suda/.nvm/versions/node/v6.9.4/lib/node_modules/particle-cli/commands/CloudCommands.js:382:16)
    at runTask (/Users/suda/.nvm/versions/node/v6.9.4/lib/node_modules/particle-cli/node_modules/when/pipeline.js:34:12)
    at /Users/suda/.nvm/versions/node/v6.9.4/lib/node_modules/particle-cli/node_modules/when/pipeline.js:42:12
    at tryCatchResolve (/Users/suda/.nvm/versions/node/v6.9.4/lib/node_modules/particle-cli/node_modules/when/lib/apply.js:46:23)
    at callAndResolve (/Users/suda/.nvm/versions/node/v6.9.4/lib/node_modules/particle-cli/node_modules/when/lib/apply.js:30:12)
    at callAndResolveNext (/Users/suda/.nvm/versions/node/v6.9.4/lib/node_modules/particle-cli/node_modules/when/lib/apply.js:40:4)
    at Fold.fulfilled (/Users/suda/.nvm/versions/node/v6.9.4/lib/node_modules/particle-cli/node_modules/when/lib/makePromise.js:767:11)
    at tryCatchReject (/Users/suda/.nvm/versions/node/v6.9.4/lib/node_modules/particle-cli/node_modules/when/lib/makePromise.js:845:30)
@suda suda changed the title Flashing a known app crashes Flashing a known app crashes the CLI Jan 28, 2017
@hwestbrook
Copy link

I have this same issue. If someone else comes here looking for a fix, the fix is to downgrade the cli to v1.18.0 via npm install -g particle-cli@1.18.0

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

No branches or pull requests

3 participants