ABP Suite 5.1.3
When generating an entity which has a field type of enum, if the enum file containers comments the entity generation fails with this message:
Cannot populate enum localizations! Error code: EN0005. System.ArgumentException: An item with the same key has already been added. Key: Enum:ECarrier:1 at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.FIZHim7T11()
The enum file used in this example:
public enum ECarrier
{
Custom = 1,
// Postal:
RoyalMail = 100000,
// Carrier:
Dhl = 200000,
Dpd = 201000,
Yodel = 202000
}
Kind Regards, AJ.
[Error] ERROR – TypeError: value.replace is not a function. (In 'value.replace(/&/g, '&')', 'value.replace' is undefined) TypeError: value.replace is not a function. (In 'value.replace(/&/g, '&')', 'value.replace' is undefined)escapeHtmlChars — abp-ng.core.mjs:834(anonymous function) — abp-ng.theme.shared-extensions.mjs:588getContent — abp-ng.theme.shared-extensions.mjs:899(anonymous function) — abp-ng.theme.shared-extensions.mjs:923forEach — abp-utils.js:259(anonymous function) — abp-ng.theme.shared-extensions.mjs:921mapngOnChanges — abp-ng.theme.shared-extensions.mjs:920rememberChangeHistoryAndInvokeOnChangesHook — core.mjs:1491callHook — core.mjs:2528callHooks — core.mjs:2487executeCheckHooks — core.mjs:2419selectIndexInternal — core.mjs:8362ɵɵadvance — core.mjs:8351LanguagesComponent_Template — volo-abp.ng.language-management.mjs:356:861executeTemplate — core.mjs:9581refreshView — core.mjs:9447refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497refreshEmbeddedViews — core.mjs:10572refreshView — core.mjs:9471refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497refreshEmbeddedViews — core.mjs:10572refreshView — core.mjs:9471refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497refreshEmbeddedViews — core.mjs:10572refreshView — core.mjs:9471refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497refreshEmbeddedViews — core.mjs:10572refreshView — core.mjs:9471refreshEmbeddedViews — core.mjs:10572refreshView — core.mjs:9471refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497refreshComponent — core.mjs:10618refreshChildComponents — core.mjs:9243refreshView — core.mjs:9497renderComponentOrTemplate — core.mjs:9561tickRootContext — core.mjs:10792detectChangesInRootView — core.mjs:10817detectChanges — core.mjs:21389tick — core.mjs:26389(anonymous function) — core.mjs:26244onInvoke — core.mjs:25428run — zone.js:134next — core.mjs:26243next__tryOrUnsub — Subscriber.js:183next — Subscriber.js:122_next — Subscriber.js:72next — Subscriber.js:49next — Subject.js:39emit — core.mjs:22373checkStable — core.mjs:25350onLeave — core.mjs:25478onInvokeTask — core.mjs:25422runTask — zone.js:178invokeTask — zone.js:487invokeTask — zone.js:1600globalZoneAwareCallback — zone.js:1637 defaultErrorLogger (vendor.js:59990) handleError (vendor.js:60037) run (polyfills.js:4513) tick (vendor.js:79940) (anonymous function) (vendor.js:79785) onInvoke (vendor.js:78969) run (polyfills.js:4513) next (vendor.js:79784) next __tryOrUnsub (vendor.js:14170) next (vendor.js:14109) _next (vendor.js:14059) next (vendor.js:14036) next (vendor.js:13820) emit (vendor.js:75914) checkStable (vendor.js:78891) onLeave (vendor.js:79019) onInvokeTask (vendor.js:78963) runTask (polyfills.js:4557) invokeTask (polyfills.js:4866) invokeTask (polyfills.js:5979) globalZoneAwareCallback (polyfills.js:6016)
Hi There, I have just updated to v5.1.1 and generated a new commercial project template and get the error shown above when displaying any table. Only the 1st line of each table page displays and the rest are blank: To re-create this error, I simply created a blank start-up project from the ABP Suite. This error and the subsequent display issue occurs on all browsers on my machine (MacOS 12.1 Safari, FF & Chrome).
UPDATE I have tried under windows as well as MacOS and the same issue occurs.
RESOLVED Updating to 5.1.2 has resolved.