- What is your product type (Angular or MVC)?
- Angular
- What is product framework type (.net framework or .net core)?
- .net Core Hi ,
We are facing compile time error in angular project while creating the entity using ASPNET zero Tool power tool.
Error :
**app/admin/oeisListingTemps/oeisListingTemps/oeisListingTemps.component.ts:111:22 - error TS1005: ',' expected.
111 this.urIFilter,
**
Please find attached screen shots for your reference.
Note : We are getting this compile time error for few fields like Identifier , URL ,Version etc.
Any help would be appreciated ..
Thanks
7 Answer(s)
-
0
Hi @mahendra
Could you share;
- Generated json file for your entity ?
- Share lines 111 and 112 of your generated TS file ?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
HI , Please find the attached json for the entity. We have also attached the line no in screenshot.
Json:
{ "IsRegenerate": false, "MenuPosition": "admin", "RelativeNamespace": "OEISListingTemps", "EntityName": "OEISListingTemp", "EntityNamePlural": "OEISListingTemps", "TableName": "OEISListingTemp", "PrimaryKeyType": "int", "BaseClass": "FullAuditedEntity", "EntityHistory": false, "AutoMigration": false, "UpdateDatabase": false, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "IsNonModalCRUDPage": false, "IsMasterDetailPage": false, "PagePermission": { "Host": false, "Tenant": false }, "Properties": [ { "Name": "Identifier", "Type": "string", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } }, { "Name": "URI", "Type": "string", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } }, { "Name": "PlatformVersion", "Type": "string", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } }, { "Name": "Version", "Type": "string", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } }, { "Name": "APIVersion", "Type": "string", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } } ], "NavigationProperties": [], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [], "DbContext": null }Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @mahendra Your json file has unexpected non ASCII characters. To see that ,open your json file with any kind of editor with ansı encoding(I used notepad++). Then you will be able to see the unexpected character (it is zwsp character I guess. See https://en.wikipedia.org/wiki/Zero-width_space). Remove that characters and your problem will be solved.

I guess you copy-pasted that property names to radtool from somewhere else. That might be the reason.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
HI musa.demir ,
This Json file is generated from tool. We have not modified anything.
When we type the variable again, this error gone. Please suggest what i need to do.
Still we are facing same issue .
Thanks Ashish
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @mahendra
Does the Power Tools output the same json file with strange character when you generate the same entity ?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi ismcagdas,
yes , the same json file with the Strange Chanracter is generated . However we have noticed this behaviour for few fields like identififer, URL , version etc . as mentioned earlier.
Note : We are not making any changes in the generated JSON file.
Thanks Ashish
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
This Json file is generated from tool. We have not modified anything.
I did not say that you change json file. Here is what I said.
I guess you copy-pasted that property names to radtool from somewhere else. That might be the reason.
Can you please clean the property name input and retype it. That may solve your problem.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)