The client-side code needs access to API endpoint , but it wasn't defined.
Did you forget to call the client_side_endpoints helper?
client_side_endpoints