You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered an issue where resolveExternal will throw Cannot redefine property: Symbol(@feathersjs/schema/dispatch). However, I can't reproduce this reliably. Sometimes the guard introduced with #3380 catches it, other times it passes the guard and the property is defined by runResolvers, then setDispatch attempts to redefine it. I don't know what influences the different behaviour, as I'll get either result, seemingly at random, rerunning the server without changes. The resolver is just as it was generated:
Opened #3705 with a fix for this error. resolveExternal now rechecks dispatch data after awaiting resolution, so nested or concurrent service calls can reuse an existing dispatch value instead of redefining its non-configurable property.
The PR includes five service-level regression tests covering nested calls, repeated result objects, and concurrent calls sharing result containers. All five reproduce the TypeError before the fix; the schema workspace's full test command passes all 42 tests with the change.
Activity
akasakariko commentedon Sep 14, 2026
Opened #3705 with a fix for this error.
resolveExternalnow rechecks dispatch data after awaiting resolution, so nested or concurrent service calls can reuse an existing dispatch value instead of redefining its non-configurable property.The PR includes five service-level regression tests covering nested calls, repeated result objects, and concurrent calls sharing result containers. All five reproduce the TypeError before the fix; the schema workspace's full test command passes all 42 tests with the change.