Error There is no directive with “exportAs” set to “matTableExporter” when using MatTableExporter

You have to import this module in "imports" section instead of providers.