Path must be a string. Received null