I'm running the Particle Workbench through VSCode under Win10 Pro, and have been having a recurring issue about once every couple of months with the Particle CLI. Basically everything will be working as normal, then for no reason I can see, both the VS Code Extension and the CLI stops being able to flash my devices, either OTA or by USB, with an error that looks similar to this:
PS E:\Code\Repos\Brn404X\BoronInitTest\target\5.3.0\boron> particle flash XXXXXXXXXXXXXXXX .\BoronInitTest.bin Cannot find module 'core-js/library/fn/object/assign' Require stack: - C:\Users\David\AppData\Local\particle\node_modules\particle-cli\node_modules\babel-runtime\core-js\object\assign.js - C:\Users\David\AppData\Local\particle\node_modules\particle-cli\node_modules\particle-api-js\lib\Particle.js - C:\Users\David\AppData\Local\particle\node_modules\particle-cli\src\cmd\api.js - C:\Users\David\AppData\Local\particle\node_modules\particle-cli\src\cmd\flash.js - C:\Users\David\AppData\Local\particle\node_modules\particle-cli\src\cli\flash.js - C:\Users\David\AppData\Local\particle\node_modules\particle-cli\src\cli\index.js - C:\Users\David\AppData\Local\particle\node_modules\particle-cli\src\app\cli.js - C:\Users\David\AppData\Local\particle\node_modules\particle-cli\src\index.js - C:\Users\David\AppData\Local\particle\[eval]
I attempted a
particle update-cli, and that returned
Updating CLI... no plugins to update.
The fix in the past has been to uninstall and re-install the CLI and all the workbench addons. While this has been a usable workaround, it'd be great if there was something I could do that didn't cost me 1/2 an hour out of my day, as it always seems to crop up when there's an urgent bugfix I want to test. I've had to pull the trigger on the workaround again for today's failure, as I really needed to get this code out for testing, but for the next time it happens, if there's anything else I can try that'd be awesome.
-- Dave Wood