Getting the same issue here, and haven’t managed to find a solution yet.
Trying to compile this for Electron on Particle Dev and . If I use Particle Build, it works fine.
In general, Particle Dev gives limited info about compile errors. I get stuff like “build didn’t produce binary Error: Command failed: /spark/compile…” But then click on error and it says “There were no compile errors”. I saw some other threads about particle.ignore files, but doesn’t seem to help.
Therefore I switched to Particle CLI on Mac. Get this error:
Matts-MBP:tsl2561 mattl$ particle compile electron tsl2561.ino
Compiling code for electron
attempting to compile firmware
Compile failed. Exiting.
tsl2561.cpp:2:25: fatal error: SFE_TSL2561.h: No such file or directory
Copying and pasting code between Atom and build.particle.io to verify, compile, flash is getting painful.