Particle Photon: Am I Using it Correctly?

what error?