Learn More, Pay Less!
Limited Time Offer!
Open Closed

angular module package when creating abp module does not run #8691


User avatar
0
miguel.laginha created

We created a module project inside ABP Studio on solution explorer. It generated an angular multi project with the module package. How can we run the angular project? We run "yarn" and "yarn start" inside root folder and when we navigate to localhost:4200 it gives the error in developer tools:

ERROR NullInjectorError: R3InjectorError(AppModule)[ApplicationInitStatus -> InjectionToken Application Initializer -> [object Object] -> LazyStyleHandler -> DocumentDirHandlerService -> DocumentDirHandlerService]: NullInjectorError: No provider for DocumentDirHandlerService! at NullInjector.get (core.mjs:1659:27) at R3Injector.get (core.mjs:3105:33) at R3Injector.get (core.mjs:3105:33) at LazyStyleHandler.listenToDirectionChanges (abp-ng.theme.basic.mjs:429:40) at new LazyStyleHandler (abp-ng.theme.basic.mjs:413:14) at Object.LazyStyleHandler_Factory [as factory] (abp-ng.theme.basic.mjs:461:23) at core.mjs:3233:47 at runInInjectorProfilerContext (core.mjs:871:9) at R3Injector.hydrate (core.mjs:3232:21) at R3Injector.get (core.mjs:3095:33)

core.mjs:7372

Another thing we did trying to familiarized with abp studio/abp suite. We had a main project with some modules and created a new project in ABP Suite. It created the module but deleted ALL the angulares projects folder inside all modules. Why is that?

  • ABP Framework version: v9.0.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue: run angular project generated on creating a module in solution explorer/ABP Studio

5 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello

    Can you try once delete node_modules folder , yarn.lock file and run yarn.

    Thank you.

  • User Avatar
    0
    miguel.laginha created

    Hello,

    We did that already and the error remains. It compiles but in browser it shows nothing and gives the error in developer tools.

    Thanks

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Hello, I’m having trouble understanding your steps. Could you please clarify how you created and integrated the modules into your app? If possible, sharing your package.json file would also help in identifying the issue. Thanks!

  • User Avatar
    0
    miguel.laginha created

    It is very simple. We created a main project and several modules with ABP studio (solution explorer): When generating the module we noticed it generates an angular multi project:

    When we try to run that project with "yarn --> yarn start" the browser gives the injection error previously described.

    A second test we did was to create a module with ABP suite instead of doing it in solution explorer and we noticed it deleted ALL modules angular folders.

  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Thank you for providing details, and bringing this to our attention. We are currently updating the templates, and these issues will be resolved in the next studio release. I appreciate your patience, and I have processed a refund for your ticket.

Made with ❤️ on ABP v9.2.0-preview. Updated on February 13, 2025, 10:35