@ved21212 Version 3 has taken a much more OOP approach. As a result, it is not backwards compatible with 2.x and you are getting that error because a lot of 2.x methods are deprecated.
You can read the upgrade guide here:
https://docs.laravel-excel.com/3.0/getting-started/upgrade.html