Cant export service from module 'it was neither declared nor imported' [duplicate]
You don't need to list services in exports
, and you can only list components, directives, and pipes. For services, providers
is relevant, but otherwise a TypeScript import is enough.