Skip to content

Problem using ngx-graph as a lazy loaded module #473

@cfrezier

Description

@cfrezier

Describe the bug
When lazy loading ngxGRaphModule, i have an error:
ERROR NullInjectorError: R3InjectorError(AppModule)[LayoutService -> LayoutService -> LayoutService]:
NullInjectorError: No provider for LayoutService!

In order to try to solve the problem, i tried instanciating the service by myself, but
Module not found: Error: Package path ./lib/graph/layouts/layout.service is not exported from package

To Reproduce
Steps to reproduce the behavior:

  1. Make an example angular app
  2. Add a module
  3. Dynamically load that module using createNgModuleRef
  4. Try to use it

Expected behavior
ngx-graph working

ngx-graph version
^8.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions