Are you sure you are using ngx v9?
“Object(…) is not a function” is typically a wrong version of ngx-translate