Open Closed

(Bug) Cli creates module with missing packages #9915


User avatar
0
mike3077 created
  • Template: app
  • Created ABP Studio Version: 1.2.2
  • Current ABP Studio Version: 1.2.2
  • Tiered: Yes
  • Multi-Tenancy: Yes
  • UI Framework: blazor-webapp
  • Theme: leptonx
  • Theme Style: system
  • Theme Menu Placement: side
  • Run Install Libs: Yes
  • Database Provider: mongodb
  • Run Db Migrator: Yes
  • Mobile Framework: none
  • Public Website: Yes
  • Social Login: Yes
  • Include Tests: Yes
  • Kubernetes Configuration: Yes
  • Distributed Event Bus: rabbitmq
  • Use Local References: No
  • Optional Modules:
    • GDPR
    • FileManagement
    • TextTemplateManagement
    • LanguageManagement
    • AuditLogging
    • Chat
    • OpenIddictAdmin
  • Selected Languages: English, English (United Kingdom)
  • Default Language: English
  • Create Command: abp new AT1.Core -t app --tiered --ui-framework blazor-webapp --database-provider mongodb --theme leptonx --public-website --without-cms-kit --sample-crud-page --dont-run-bundling -chat -file-management

abp new-module widget2 -o AT1.Core\modules\widget2 -d mongodb -u blazor

Application is missing: MiniExcel Domain.Shared is missing: Volo.Abp.BlobStoring.Database.Domain.Shared Domain is missing: Volo.Abp.BlobStoring.Database.Domain MongoDb is missing: Volo.Abp.BlobStoring.Database.MongoDB MongoDb.Tests is missing: Volo.Abp.BlobStoring.Database.MongoDB


3 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • When creating a new module with the ABP CLI (abp new-module), some required NuGet packages (such as MiniExcel, Volo.Abp.BlobStoring.Database.Domain.Shared, Volo.Abp.BlobStoring.Database.Domain, Volo.Abp.BlobStoring.Database.MongoDB, etc.) may not be automatically added to the generated module projects, especially when using MongoDB as the database provider or when certain features are expected by the solution template.

    • This is a known limitation: the CLI-generated module template does not always include all dependencies that your main application or its modules require. You need to manually add missing NuGet packages to the relevant projects after module creation.

    • For example, if your application uses features like BlobStoring with MongoDB or MiniExcel, you should add the following packages manually to the corresponding projects:

      • Volo.Abp.BlobStoring.Database.Domain.Shared (to Domain.Shared)
      • Volo.Abp.BlobStoring.Database.Domain (to Domain)
      • Volo.Abp.BlobStoring.Database.MongoDB (to MongoDb and MongoDb.Tests)
      • MiniExcel (to Application or where needed)
    • This manual step is required to align your module with the dependencies and features used in your main solution.

    • For more information on module development and dependencies, see:

    Sources:

    • https://docs.abp.io/en/abp/latest/Module-Development-Basics
    • https://docs.abp.io/en/abp/latest/Startup-Templates/Application

    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.

  • User Avatar
    0
    mike3077 created

    Is this a limitation or by design? Is the source code open source? I will gladly add this so that the CLI does not generate broken modules by default.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The BlobStoring.Database module is not an infrastructure module. You need to add it by yourself.

    Thanks.

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.0.0-preview. Updated on September 22, 2025, 10:12