Activities of "MILLENNIUM"

Answer

Hello Dears I have issue with abp generate-proxy, it was working and stopped for some reason The backend is up and running, the swagger is running well For somereason, I cannot run generate-proxy, I get this error:

\angular> abp generate-proxy [11:26:34 INF] ABP CLI (https://abp.io) [11:26:34 INF] Version 4.3.3 (Stable) [11:26:36 WRN] Couldn't determinate version of "@abp/ng.schematics" package. "SchematicsAbpGenerateProxy" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID. [API URL Not Found] Cannot resolve API URL for "default" remote service name from "AppName" project.

Answer

Dears,

I downloaded account module with source code on exisiting project (4.3.0-rc.1)

I get this error when I run the application, it deos not work!:

Error: Debug error: DtsModuleScopeResolver.read(AccountSettingsModule from D:/Dev/NoonClouds.Hub/angular/projects/account/admin/src/account-settings.module.ts), but not a .d.ts file

P.S:

I already tried the old solution but did not work in 4.3.0-rc.1: https://support.abp.io/QA/Questions/807/Bugs--Issues-v42X#answer-64a151bf-76ea-027b-8be3-39fadb31c2ac

Answer

Dears, any clue regarding this issue, I am stack with this, I read the documentation several times and I do not have the source code of commercial module,

Thanks

Issue with payment module with v4.3.0-rc.1

  • ABP Framework version: v4.3.0-rc.1
  • UI type: Angular ( but trying with MVC for now)
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Steps to reproduce the issue:

1- I installed payment commercial module,
2- migrated db
3- setup appsettings for payment providers
4- added an action as sample suggested: https://docs.abp.io/en/commercial/latest/modules/payment
5- I run system and tried the action but I got that error!

  • Exception message and stack trace:
    An unhandled exception occurred while processing the request.
    SqlException: Invalid object name 'PayPaymentRequests'.
    Microsoft.Data.SqlClient.SqlCommand+<>c.<ExecuteDbDataReaderAsync>b__169_0(Task<SqlDataReader> result)

DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)

SqlException: Invalid object name 'PayPaymentRequests'.

Microsoft.Data.SqlClient.SqlCommand+<>c.<ExecuteDbDataReaderAsync>b__169_0(Task<SqlDataReader> result)
System.Threading.Tasks.ContinuationResultTaskFromResultTask<TAntecedentResult, TResult>.InnerInvoke()
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, object state)
System.Threading.Tasks.Task.ExecuteWithThreadLocal(ref Task currentTaskSlot, Thread threadPoolThread)
Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)

did you add migration after adding the module? add-migration

I did now, the system runs but I got redirected to another unexist page:

I got this error after submitting the payment request:

No webpage was found for the web address: https://localhost:44342/Payment/GatewaySelection?paymentRequestId=a9b3d199-9646-9251-64f3-39fbebed14a0

I followed the steps : ABP Framework version: v4.3.0-rc.1 UI type: Angular ( but trying with MVC for now) DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): no Steps to reproduce the issue: 1- I installed payment commercial module, 2- add migration and then migrated db 3- setup appsettings for payment providers 4- added an action as sample suggested: https://docs.abp.io/en/commercial/latest/modules/payment 5- I run system and tried the action but I got that error!

Answer

Issue with payment module with v4.3.0-rc.1

  • ABP Framework version: v4.3.0-rc.1
  • UI type: Angular ( but trying with MVC for now)
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Steps to reproduce the issue:

1- I installed payment commercial module,
2- migrated db
3- setup appsettings for payment providers
4- added an action as sample suggested: https://docs.abp.io/en/commercial/latest/modules/payment
5- I run system and tried the action but I got that error!

  • Exception message and stack trace:
    An unhandled exception occurred while processing the request.
    SqlException: Invalid object name 'PayPaymentRequests'.
    Microsoft.Data.SqlClient.SqlCommand+<>c.<ExecuteDbDataReaderAsync>b__169_0(Task<SqlDataReader> result)

DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)

SqlException: Invalid object name 'PayPaymentRequests'.

Microsoft.Data.SqlClient.SqlCommand+<>c.<ExecuteDbDataReaderAsync>b__169_0(Task<SqlDataReader> result)
System.Threading.Tasks.ContinuationResultTaskFromResultTask<TAntecedentResult, TResult>.InnerInvoke()
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, object state)
System.Threading.Tasks.Task.ExecuteWithThreadLocal(ref Task currentTaskSlot, Thread threadPoolThread)
Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)

did you add migration after adding the module? add-migration

I did now, the system runs but I got redirected to another unexist page:

I got this error after submitting the payment request:

No webpage was found for the web address: https://localhost:44342/Payment/GatewaySelection?paymentRequestId=a9b3d199-9646-9251-64f3-39fbebed14a0

I followed the steps : ABP Framework version: v4.3.0-rc.1 UI type: Angular ( but trying with MVC for now) DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): no Steps to reproduce the issue: 1- I installed payment commercial module, 2- add migration and then migrated db 3- setup appsettings for payment providers 4- added an action as sample suggested: https://docs.abp.io/en/commercial/latest/modules/payment 5- I run system and tried the action but I got that error!

I got this error after submitting the payment request:

No webpage was found for the web address: https://localhost:44342/Payment/GatewaySelection?paymentRequestId=a9b3d199-9646-9251-64f3-39fbebed14a0

I followed the steps : ABP Framework version: v4.3.0-rc.1 UI type: Angular ( but trying with MVC for now) DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): no Steps to reproduce the issue: 1- I installed payment commercial module, 2- add migration and then migrated db 3- setup appsettings for payment providers 4- added an action as sample suggested: https://docs.abp.io/en/commercial/latest/modules/payment 5- I run system and tried the action but I got that error!

Answer

Issue with payment module with v4.3.0-rc.1

  • ABP Framework version: v4.3.0-rc.1
  • UI type: Angular ( but trying with MVC for now)
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Steps to reproduce the issue:

1- I installed payment commercial module, 2- migrated db 3- setup appsettings for payment providers 4- added an action as sample suggested: https://docs.abp.io/en/commercial/latest/modules/payment 5- I run system and tried the action but I got that error!

  • Exception message and stack trace: An unhandled exception occurred while processing the request. SqlException: Invalid object name 'PayPaymentRequests'. Microsoft.Data.SqlClient.SqlCommand+<>c.<ExecuteDbDataReaderAsync>b__169_0(Task<SqlDataReader> result)

DbUpdateException: An error occurred while updating the entries. See the inner exception for details. Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)

SqlException: Invalid object name 'PayPaymentRequests'.

Microsoft.Data.SqlClient.SqlCommand+<>c.<ExecuteDbDataReaderAsync>b__169_0(Task<SqlDataReader> result) System.Threading.Tasks.ContinuationResultTaskFromResultTask<TAntecedentResult, TResult>.InnerInvoke() System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, object state) System.Threading.Tasks.Task.ExecuteWithThreadLocal(ref Task currentTaskSlot, Thread threadPoolThread) Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)

Did you configure your Identity Server in the database tables. Check out the tables with the prefix IdentityServer. Especially IdentityServerClients, IdentityServerClientRedirectUris, IdentityServerClientPostLogoutRedirectUris

Dear Alper,

Please be more specific, what I should configure, the documentation says nothing about this, and there is no documentation regarding this, I have been trying to publish the system for todays now! I copied the same local database to production, but even that did not work!, now I get the new error named: (UNAUTHORIZED_CLIENT)

This solution still have problems, when you have both lepton theme source code and account source code, you cannot change the style of the theme, (you still read the value from node module)

Hi Paul

  1. The theme-lepton library gets style files from node_modules/@volo/abp.ng.theme.lepton/dist folder. You should overwrite the CSS files after building. So you can use a command to achieve this like the following:
yarn ng build theme-lepton && cp -r packages/theme-lepton/dist dist/theme-lepton 

Then check the styles in dist/theme-lepton/dist/styles folder. You will see your edited styles there.

  1. You should add a variable named appInfo. This custom footer component works:
import { EnvironmentService } from '@abp/ng.core'; 
import { Component } from '@angular/core'; 
 
@Component({ 
  selector: 'app-footer', 
  template: ` 
    &lt;footer class=&quot;lp-footer&quot;&gt; 
      &lt;div class=&quot;d-flex&quot;&gt; 
        &lt;div class=&quot;mr-auto&quot;&gt; 
          &lt;span&gt;2019 - {{ currentYear }} © {{ appInfo.name }}&lt;/span 

> ><br />

    &lt;/div&gt; 
  &lt;/div&gt; 
&lt;/footer&gt; 

`, styleUrls: ['./footer.component.scss'], }) export class FooterComponent { currentYear = new Date().getFullYear();

get appInfo() { return this.environment.getEnvironment().application; }

constructor(private environment: EnvironmentService) {} }

 
3. Here is the `tsconfig.prod.json`:  
 

{ "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "downlevelIteration": true, "experimentalDecorators": true, "module": "esnext", "moduleResolution": "node", "importHelpers": true, "target": "es2015", "typeRoots": ["node_modules/@types"], "lib": ["es2018", "dom"], "types": ["jest"] }, "angularCompilerOptions": { "fullTemplateTypeCheck": true, "strictInjectionParameters": true } }

 
`tsconfig.json`: 
 

{ "extends": "./tsconfig.prod.json", "compilerOptions": { "paths": { "@volo/abp.commercial.ng.ui": ["packages/commercial-ui/src/public-api.ts"], "@volo/abp.ng.account": ["packages/account/src/public-api.ts"], "@volo/abp.ng.account/config": ["packages/account/config/src/public-api.ts"], "@volo/abp.ng.account/admin": ["packages/account/admin/src/public-api.ts"], "@volo/abp.ng.audit-logging": ["packages/audit-logging/src/public-api.ts"], "@volo/abp.ng.audit-logging/config": ["packages/audit-logging/config/src/public-api.ts"], "@volo/abp.ng.identity-server": ["packages/identity-server/src/public-api.ts"], "@volo/abp.ng.identity-server/config": ["packages/identity-server/config/src/public-api.ts"], "@volo/abp.ng.identity": ["packages/identity/src/public-api.ts"], "@volo/abp.ng.identity/config": ["packages/identity/config/src/public-api.ts"], "@volo/abp.ng.saas": ["packages/saas/src/public-api.ts"], "@volo/abp.ng.saas/config": ["packages/saas/config/src/public-api.ts"], "@volo/abp.ng.theme.lepton": ["packages/theme-lepton/src/public-api.ts"], "@volo/abp.ng.theme.lepton/": ["packages/theme-lepton/src/lib/"], "@volo/abp.ng.language-management": ["packages/language-management/src/public-api.ts"], "@volo/abp.ng.language-management/config": [ "packages/language-management/config/src/public-api.ts" ], "@volo/abp.ng.language-management/locale": ["packages/language-management/locale/src/public-api.ts"], "@volo/abp.ng.text-template-management": [ "packages/text-template-management/src/public-api.ts" ], "@volo/abp.ng.text-template-management/config": [ "packages/text-template-management/config/src/public-api.ts" ] } } }

Answer

Thank you Mehmet, This worked!

Hi @MILLENNIUM, @bqabani

Warning: Entry point '@volo/abp.ng.account/config' contains deep imports into '......./angular/projects/account/admin/src/public-api.ts'. This is probably not a problem, but may cause the compilation of entry points to be out of order. Error: Failed to compile entry-point @volo/abp.ng.account/config (es2015 as esm2015) due to compilation errors: projects/account/admin/src/account-settings.module.ts:28:14 - error NG6002: Appears in the NgModule.imports of AccountConfigModule, but could not be resolved to an NgModule class. Is it missing an @NgModule annotation? 28 export class AccountSettingsModule {}

To resolve the problem above, first, you should add a file named tsconfig.prod.json with the below content to angular folder.

{ 
  "compileOnSave": false, 
  "compilerOptions": { 
    "baseUrl": "./", 
    "outDir": "./dist/out-tsc", 
    "sourceMap": true, 
    "declaration": false, 
    "downlevelIteration": true, 
    "experimentalDecorators": true, 
    "module": "esnext", 
    "moduleResolution": "node", 
    "importHelpers": true, 
    "target": "es2015", 
    "typeRoots": ["node_modules/@types"], 
    "lib": ["es2018", "dom"], 
    "types": ["jest"] 
  }, 
  "angularCompilerOptions": { 
    "fullTemplateTypeCheck": true, 
    "strictInjectionParameters": true 
  } 
} 

Then open the package.json and add the following scripts:

"scripts": { 
 ... 
 "compile:ivy": "yarn ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points --tsconfig './tsconfig.prod.json' --source node_modules", 
 "postinstall": "npm run compile:ivy" 
  }, 

After this configuration, you should remove yarn.lock and run the yarn command.

There is a problem with ngcc. It can not resolve the paths in tsconfig.json correctly. The solution above is just a trick.

Answer

Hi @Mehmet,

I tried, I don't think so, the issue occures after you create a new application with the latest version, and then install both lepton source code and account pro source code (replace packages with source code)

The ngcc compiler must use the library from 'project' folder in angular app, but looks there is some missing configuration in the project, Now I did a small change to make the project run (cause I have to work on my tasks, unitl I find a solution) , I commented out importing the Account Config module, and it worked successfuly, but the menu in admin menu is missing some links now

Showing 11 to 20 of 24 entries
Made with ❤️ on ABP v9.1.0-rc.1. Updated on January 17, 2025, 14:13