Skip to content

Error when ENUMS or Utility Classes are used #35

@berndlackinger

Description

@berndlackinger

when calling ng g ng-samurai:split-lib i get following error
Ng-samurai: Could not find a module for the import path '../../_core/enums/testenum' in /libs/commons/src/lib/foo.guard.ts. Please adjust the import path and rerun the schematics

The same happens when using an route.util.ts class which isn't an Angular class but a dumb TS one.

The Import to the Enum is like this one: import { TestEnum } from '../../_core/enums/test-enum';

The enum itself is exported via export const enum TestEnum { ........

i'm stuck here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions