throw error if calling inject from inside a transform