I created a new project, but the angular app didn't work. I got the following error:
./src/app/app.module.ts:17:0-37 - Error: Module not found: Error: Empty dependency (no request)
./src/app/app.module.ts:25:0-78 - Error: Module not found: Error: Can't resolve '@volosoft/abp.ng.theme.lepton-x/account' in 'D:\Projects\ExpenseOrder\angular\src\app'
Error: src/app/app.component.ts:6:5 - error NG8001: 'abp-loader-bar' is not a known element:
6 <abp-loader-bar></abp-loader-bar> ~~~~~~~~~~~~~~~~
Error: src/app/app.component.ts:7:5 - error NG8001: 'abp-dynamic-layout' is not a known element:
7 <abp-dynamic-layout></abp-dynamic-layout> ~~~~~~~~~~~~~~~~~~~~
Error: src/app/app.component.ts:8:5 - error NG8001: 'abp-gdpr-cookie-consent' is not a known element:
8 <abp-gdpr-cookie-consent></abp-gdpr-cookie-consent> ~~~~~~~~~~~~~~~~~~~~~~~~~
Error: src/app/app.module.ts:17:35 - error TS2307: Cannot find module '' or its corresponding type declarations.
17 import { ThemeLeptonModule } from ''; ~~
Error: src/app/app.module.ts:25:37 - error TS2307: Cannot find module '@volosoft/abp.ng.theme.lepton-x/account' or its corresponding type declarations.
25 import { AccountLayoutModule } from '@volosoft/abp.ng.theme.lepton-x/account'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: src/app/app.module.ts:29:12 - error NG1010: Value
Error: Can't resolve 'node_modules/bootstrap-icons/font/bootstrap-icons.css' in 'D:\Projects\ExpenseOrder\angular'
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
ABP Framework version: v7.3.3
UI Type: Angular
Database System: EF Core (SQL Server)
I created a new project, but the angular app didn't work. I got the following error:
Error: node_modules/@volo/abp.ng.lepton-x.core/lib/directives/if-replaceable-template-exists.directive.d.ts:12:125 - error TS2344: Type '{ abpIfReplaceableTemplateExists: { alias: "abpIfReplaceableTemplateExists"; required: false; }; }' does not satisfy the constraint '{ [key: string]: string; }'. Property '"abpIfReplaceableTemplateExists"' is incompatible with index signature. Type '{ alias: "abpIfReplaceableTemplateExists"; required: false; }' is not assignable to type 'string'.
12 static ɵdir: i0.ɵɵDirectiveDeclaration<IfReplaceableTemplateExistsDirective, "[abpIfReplaceableTemplateExists]", never, { "abpIfReplaceableTemplateExists": { "alias": "abpIfReplaceableTemplateExists"; "required": false; }; }, {}, never, never, false, never>;
Hi,
I got bellow issue when post model that contains date value from angular frontend to API backend.
I tried to use custom converter, but it didn't reach read and write methods:
context.Services.Configure<JsonOptions>(options =>
{
options.JsonSerializerOptions.Converters.Add(new CustomDateTimeConverter());
});
public class CustomDateTimeConverter : JsonConverter<DateTime>
{
public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
var formats = "dd/MM/yyyy;dd-MM-yyyy;dd.MM.yyyy;dd/MM/yyyy hh:mm:ss;dd-MM-yyyy hh:mm:ss;dd.MM.yyyy hh:mm:ss;dd/MM/yyyy HH:mm:ss;dd-MM-yyyy HH:mm:ss;dd.MM.yyyy HH:mm:ss".Split(";");
var input = reader.GetString();
var value = DateTime.ParseExact(input, formats, null);
return value;
}
public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options)
{
writer.WriteStringValue(value);
}
}
Also I tried below settings:
var formats = "dd/MM/yyyy;dd-MM-yyyy;dd.MM.yyyy;dd/MM/yyyy hh:mm:ss;dd-MM-yyyy hh:mm:ss;dd.MM.yyyy hh:mm:ss;dd/MM/yyyy HH:mm:ss;dd-MM-yyyy HH:mm:ss;dd.MM.yyyy HH:mm:ss".Split(";");
context.Services.Configure<AbpJsonOptions>(options =>
{
options.InputDateTimeFormats.AddRange(formats);
});
I got another issue:
Could you please help and advise.
Hi All,
I had an old asp.net MVC application and now try to move it to ABP Framework, in our application we create a user account without password once admin add new employee, then send reset password link via email to recent created account.
Could you please advise how to implement the same scenario using ABP Framework?
Hi,
I'm trying to implement the following scenario: I had a department entity which contains head department property, so I need to show all departments except the current in lookup control (In edit mode) but I could not find the way to pass department id to service function.
<abp-lookup-select cid="department-parent-department-id" formControlName="parentDepartmentId" [getFn]="service.getParentDepartmentLookup" ></abp-lookup-select>
Hi, is it possible to have a shared model, database, Identity for multiple applications?
I had two applications one for hour staff and the other for our clients, both of these applications shared the same model, database, Identity.
The main difference is in the logic layer and validations, and we need to move these applications to ABP could you please advise the best scenario to start migration process?