Skip to content

question: Using typedi with monorepo #942

@Kimblis

Description

@Kimblis

I was trying to...
I was trying to use typedi with monorepo, where we have a common repo where we place some common stuff between other repos, so there are common services there as well.

The problem:
If I create service in that common repo, decorate it with @service decorator, I still can't inject it anywhere else, it throws ServiceNotFoundError. If I place the same services inside my repo I'm trying to access this service in - everything works just fine. However now I need to duplicate all these services in all repos which is not optimal... Is there are way to share these services between repos in monorepo structure? Any ideas would really be helpful

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionQuestions about the usage of the library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions