Open Closed

ui-extensions.module.ts but not a .d.ts file #5440


User avatar
0
CI created
  • ABP Framework version: v7.2.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Auth Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hey, I'm trying to use the local theme.shared. I used the following command to add the packages to the angular solution: abp add-package @abp/ng.theme.shared -v 7.2.3 --with-source-code.

In tsconfig.json paths: [ ..., "@abp/ng.theme.shared/testing": [ "projects/abp-ng.theme.shared/testing/src/public-api.ts" ], "@abp/ng.theme.shared/extensions/testing": [ "projects/abp-ng.theme.shared/extensions/testing/src/public-api.ts" ], "@abp/ng.theme.shared": [ "projects/abp-ng.theme.shared/src/public-api.ts" ], "@abp/ng.theme.shared/extensions": [ "projects/abp-ng.theme.shared/extensions/src/public-api.ts" ], ]

In angular.json projects: [ ..., "abp-ng.theme.shared": { "projectType": "library", "root": "projects/abp-ng.theme.shared", "sourceRoot": "projects/abp-ng.theme.shared/src", "prefix": "abp", "architect": { "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { "tsConfig": "projects/abp-ng.theme.shared/tsconfig.lib.json", "project": "projects/abp-ng.theme.shared/ng-package.json" }, "settings": { "production": { "tsConfig": "projects/abp-ng.theme.shared/tsconfig.lib.prod.json" } } }, "test": { "builder": "@angular-builders/jest:run", "options": { "coverage": true, "passWithNoTests": true } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "projects/abp-ng.theme.shared/tsconfig.lib.json", "projects/abp-ng.theme.shared/tsconfig.spec.json" ], "exclude": [ "/node_modules/" ] } } } } ]

When I try to upload the application with yarn run start, it gives the error: Error: Debug error: DtsModuleScopeResolver.read(UiExtensionsModule from angular/projects/abp-ng.theme.shared/extensions /src/lib/ui-extensions.module.ts), but not a .d.ts file

Would you help me?


4 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    I know the issue but I couldn't fix. It related with 'extensions' sub packages. if you remove the extensions sub package. it will work. What is your main purpose ? Maybe I can give alternative way.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    Please try to install local shared.theme by using https://abp.io/package-detail/@abp_ng.theme.shared It works at my end.

  • User Avatar
    0
    CI created

    Hi,

    I would like to customize the existing reusable ngx-datatable without having to create a new one. But due to this problem I can't reflect my changes.

    Does the npm install @abp/ng.theme.shared command download the code locally for customization?

  • User Avatar
    0
    mahmut.gundogdu created

    Hi,

    I would like to customize the existing reusable ngx-datatable without having to create a new one. But due to this problem I can't reflect my changes.

    Does the npm install @abp/ng.theme.shared command download the code locally for customization?

    You can't do that with local packages. I am trying to find why this packages throw this error. I will send solution or a workarond soon.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09