Open Closed

V4.4.X Administration / Identity Management - Cannot add property _userName, object is not extensible #1945


User avatar
0
john.volosen created
  • ABP Framework version: v4.4.X
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
ERROR TypeError: Cannot add property _userName, object is not extensible
    at abp-ng.theme.shared-extensions.js:1331
    at EntityPropList.forEach (abp-utils.js:259)
    at abp-ng.theme.shared-extensions.js:1329
    at Array.map (<anonymous>)
    at ExtensibleTableComponent.ngOnChanges (abp-ng.theme.shared-extensions.js:1328)
    at ExtensibleTableComponent.rememberChangeHistoryAndInvokeOnChangesHook (core.js:1471)
    at callHook (core.js:2490)
    at callHooks (core.js:2457)
    at executeInitAndCheckHooks (core.js:2408)
    at refreshView (core.js:9207)
defaultErrorLogger @ core.js:5980
handleError @ core.js:6028
(anonymous) @ core.js:29284
invoke @ zone-evergreen.js:364
run @ zone-evergreen.js:123
runOutsideAngular @ core.js:28229
tick @ core.js:29284
(anonymous) @ core.js:29156
invoke @ zone-evergreen.js:364
onInvoke @ core.js:28301
invoke @ zone-evergreen.js:363
run @ zone-evergreen.js:123
run @ core.js:28184
next @ core.js:29155
schedulerFn @ core.js:25666
__tryOrUnsub @ Subscriber.js:183
next @ Subscriber.js:122
_next @ Subscriber.js:72
next @ Subscriber.js:49
next @ Subject.js:39
emit @ core.js:25656
checkStable @ core.js:28237
onHasTask @ core.js:28315
hasTask @ zone-evergreen.js:419
_updateTaskCount @ zone-evergreen.js:440
_updateTaskCount @ zone-evergreen.js:263
runTask @ zone-evergreen.js:184
drainMicroTaskQueue @ zone-evergreen.js:569
invokeTask @ zone-evergreen.js:484
invokeTask @ zone-evergreen.js:1621
globalZoneAwareCallback @ zone-evergreen.js:1647
core.js:5980 ERROR TypeError: Cannot read properties of undefined (reading 'visible')
    at ExtensibleTableComponent_ng_container_2_ng_template_3_ng_container_0_Template (abp-ng.theme.shared-extensions.js:325)
    at executeTemplate (core.js:9323)
    at refreshView (core.js:9192)
    at refreshEmbeddedViews (core.js:10312)
    at refreshView (core.js:9216)
    at refreshEmbeddedViews (core.js:10312)
    at refreshView (core.js:9216)
    at refreshEmbeddedViews (core.js:10312)
    at refreshView (core.js:9216)
    at refreshComponent (core.js:10358)
  • Steps to reproduce the issue:"
    • Login as Admin user
    • Go to Administration -> Idenity-Management -> Users (or Roles or Claim-Types)
    • Page loads, the table shows the number of records, but the table does not display any records due to the exception above
    • Note: we downloaded the source code for the ABP-Account module (both client and backend) and the ABP-Lepthon-Theme for client side only. All ABP source code was updated to the latest 4.4.X version


1 Answer(s)
  • User Avatar
    0
    muhammedaltug created

    Hello,

    I can not reproduce the error. Can you send an example project which has this error? Or can you post the steps from scratch (which commands do you run from project creation until version upgrade)?

    Note: "ERROR TypeError: Cannot add property , object is not extensible" error throws when you try to mutate an object after Object.freeze or Object.preventExtensions. Did any of these methods executed affect IdentityState?

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11