Trouble setting up algolia in wordpress

I have WPCli installed but after following all of the steps under in Quick Start | WordPress | Algolia Documentation, i get an error when running wp algolia reindex_post -

PHP Fatal error: Uncaught Error: Call to undefined method Algolia\AlgoliaSearch\Response\IndexingResponse::clearObjects() in /sites/elsgdev/wp-content/plugins/algolia-custom-integration/wp-cli.php:14

Stack trace:

#0 [internal function]: Algolia_Command->reindex_post()

#1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(98): call_user_func()

#2 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}()

#3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(451): call_user_func()

#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(371): WP_CLI\Dispatcher\Subcommand->invoke()

#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(394): WP_CLI\Runner->run_command()

#6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1160): WP_CLI\Runner->run_command_and_exit()

#7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()

#8 phar:// in /sites/elsgdev/wp-content/plugins/algolia-custom-integration/wp-cli.php on line 14

Fatal error: Uncaught Error: Call to undefined method Algolia\AlgoliaSearch\Response\IndexingResponse::clearObjects() in /sites/elsgdev/wp-content/plugins/algolia-custom-integration/wp-cli.php:14

Stack trace:

#0 [internal function]: Algolia_Command->reindex_post()

#1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(98): call_user_func()

#2 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}()

#3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(451): call_user_func()

#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(371): WP_CLI\Dispatcher\Subcommand->invoke()

#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(394): WP_CLI\Runner->run_command()

#6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1160): WP_CLI\Runner->run_command_and_exit()

#7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()

#8 phar:// in /sites/elsgdev/wp-content/plugins/algolia-custom-integration/wp-cli.php on line 14

Error: There has been a critical error on this website.Learn more about debugging in WordPress. There has been a critical error on this website.

Attached is my files and plugin folder
Screen Shot 2021-02-04 at 1.34.06 AM

Please help.

Thank you.

Rene