Photon2 compile errors when using custom library

Maybe this thread reply by @rickkas7 could help? :https://community.particle.io/t/issue-cloud-compile-fails-but-local-compile-succeeds/64878/6

I came across it when I was researching why I was not able to cloud compile my workbench projects when local compile worked.