Dynamic pipe in angular 10 cant inject ‘number’ pipe

I’m creating a dynamic pipe to format my table components columns
dynamic.pipe.ts

import {
  Injector,
  Pipe,
  PipeTransform
} from '@angular/core';
import { MomentPipe } from './moment.pipe';

@Pipe({
  name: 'dynamicPipe',
})
export class DynamicPipe implements PipeTransform {

  public constructor(private injector: Injector, private momentPipe: MomentPipe) {
  }

  transform(value: any, pipeToken: any, pipeArgs: any[]): any {
    if (!pipeToken) {
      return value;
    }
    else {
      const pipe = this.injector.get<any>(pipeToken);
      return Array.isArray(pipeArgs) ? pipe.transform(value, ...pipeArgs) : pipe.transform(value, pipeArgs);
    }
  }
}

The pipe is declared and exported in my shared module, along with the component that uses it
shared.module.ts

import { CommonModule } from '@angular/common';
///
import { DynamicPipe } from './pipes/dynamic.pipe';
import { SharedTableComponent } from './components/shared-table/shared-table.component';
///

declarations: [
    ///
    DynamicPipe,
    SharedTableComponent,
    ///
  ],
exports: [
    ///
    DynamicPipe,
    SharedTableComponent,
    ///
  ],
  providers: [
    ///
    DynamicPipe,
    ///
  ]
///

My shared module is imported to the App module

The shared module is imported where I make use of the shared table component
The dynamic pipe is used as below

column = {
  data: 1.2345678,
  colPipe: 'number',
  colPipeArgs: '1.1-1',
};

{{ column.data | dynamicPipe: column.colPipe:column.colPipeArgs }}

I’m getting the error:

ERROR NullInjectorError: R3InjectorError(JobModule)[number -> number -> number -> number -> number -> number]: 
  NullInjectorError: No provider for number!
    Angular 14
    transform dynamic.pipe.ts:21

What am I missing?

Source: Angular Questions