Open Closed

Create new module fail #4429


User avatar
0
yim.tim created

I try to create new module to existing Abp solution. The named "CRS" module are created and added into existing solution file. Visual Studio can be built but Angular program cannot be compliled. The following error are displayed when start Angular program. Please advise.

  • ABP Framework version: v6.0.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

5 Answer(s)
  • User Avatar
    0
    muhammedaltug created

    Hello,

    Can you send your tsconfig.json?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    yim.tim created

    Please see the following tsconfig.json for your reference.

    tsconfig.json app.module.ts

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    muhammedaltug created

    Hello

    You need to import CRSConfigModule instead of CRSModule.

    import { CRSConfigModule } from '@c-rS/config'
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    yim.tim created

    I uses the Abp suite to create new module. Do you mean that Abp suite have bug and I need to fix it myself?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    muhammedaltug created

    Hello,

    I created an issue about this situation. You can follow the status of issue

    Also, the module was added wrongly to environment.ts. You can fix it like the following. (This error was fixed in ABP 6.0.3 version)

    {
      // other properties
      apis: {
         // other apis
         CRS: {
          rootNamespace: 'CRS',
        },
      },
    } as Environment;
    

    For your information following steps are not automated with ABP Suite

    • Configure the URL of the module in projects/your-module/config/src/providers/route.provider.ts
    • Add the following lines to your app-routing.module.ts
    {
        path: 'url-of-module',
        loadChildren: () => import('@c-rS').then(m => m.CRSModule);
     }
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.