OneIdentity / IdentityManager.Imx

HTML5 source code for Identity Manager web apps
Other
26 stars 107 forks source link

dpr Module import not working in the qer-app-operationssupport #119

Closed IPG-GillesRusso closed 4 months ago

IPG-GillesRusso commented 4 months ago

So I was trying to debug and test some changes to the Operationssupport Portal and noticed that the import for the dpr-component and module are not working. In the app-module and app-routing module of the qer-app-operationssupport the dpr module isn't recognized. You can solve this issue by changing the import's paths from dpr to the absolute path. For example by changing import { OutstandingModule } from 'dpr'; to -> import { OutstandingModule } from '../../../dpr/src/lib/outstanding/outstanding.module'; Additionally you need to change a funtion from private to public. This is solely a workaround as I couldn't figure out why the import isn't working. Any feedback would be helpful.

hannoquest commented 4 months ago

Hello @IPG-GillesRusso,

The imports using module aliases (import { OutstandingModule } from 'dpr') are intentional. Changing them to relative path imports may solve the issue in one context, but creates other issues because Angular cannot deal with cross-project imports.

These path aliases are defined in imxweb/tsconfig.json.

IPG-GillesRusso commented 4 months ago

Thank you for the response and clarification