fix: Cannot redefine property: $$id error - #54654
Conversation
|
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
|
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Secrets | View in Orca |
shuding
left a comment
There was a problem hiding this comment.
Thanks for the PR, could you get a minimal reproduction of this issue so we can have a test case for it?
|
@shuding - I hope this one is quite self-explanatory. I think the vercel team has to decide if those action properties should be considered reserved/read only or if other libraries can use the same properties. Or else just clarify the way this is supposed to work, generally. I arrived at this issue because tRPC is in some cases providing its own ID, leading to |
|
Might be related to next-safe-action/next-safe-action#56 |
Fixes: #54655
action: anycould already be defined, leading to acannot redefine erroron new builds, affectingserver actionsIntroduced by here:
https://github.com/vercel/next.js/pull/54232/files#diff-95a0d700e8c22a337ac8800d4ddf80f44c6369aa2e6acf5bd2b71632f7471c68R35-R48