matSort, ERROR Error: Uncaught (in promise): HierarchyRequestError: Failed to execute ‘appendChild’ on ‘Node’: This node type does not support this method.

While working on matSort if you face issue – “ERROR Error: Uncaught (in promise): HierarchyRequestError: Failed to execute ‘appendChild’ on ‘Node’: This node type does not support this method.”, make sure to add mat-sort-header in th element and not in the container.

Leave a Reply

Your email address will not be published. Required fields are marked *