Hi Team,
I am customizing the built-in UsersComponent from @volo/abp.ng.identity. While attempting to replace it with my own component:
I encountered an error because the ExcelService and UserSessionsComponent are not exported externally
Could you consider exporting them in the next version?
Thanks for your support
3 Answer(s)
-
0
The error you are encountering is because the ExcelService and UserSessionsComponent are not exported in the public API of the @volo/abp.ng.identity package. This means you cannot import them directly in your custom component, as shown by the module not found errors in your screenshots.
To resolve this, these services and components must be explicitly exported in the package's index.ts files (as you illustrated in your last screenshot). Until the maintainers add these exports and publish a new version, you will not be able to use them directly from the package.
As a workaround, you can:
- Create your own implementations or wrappers for the missing services/components if you need urgent access.
- Or, fork the package, add the necessary exports, and use your fork until the official package is updated.
For long-term maintainability, it is best to request the ABP team to export these in the next release, as you have done.
Sources (validated):
- How replaceable components work with extensions (ABP Angular)
- ABP Support: Using @volo packages services in Angular
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
Hi, can you support this in next version?
-
0
Hello, sure we will consider adding these exports to the relative indexes. Until then, you can reach the source code using suite as explained here: https://abp.io/docs/latest/suite/source-code
You can also get the source code to your project using
abp add-package @volo/abp.ng.identity --with-source-code
command.Thank you for your cooperation.