ng-samurai icon indicating copy to clipboard operation
ng-samurai copied to clipboard

Error when ENUMS or Utility Classes are used

Open berndlackinger opened this issue 2 years ago • 0 comments

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

berndlackinger avatar Dec 01 '22 14:12 berndlackinger