We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON validation passes error strings to the t() function causing errors:
key not found: Cannot read properties of undefined (reading 'toString')
payload/packages/payload/src/fields/validations.ts
Line 355 in 6b051bd
Line 358 in 6b051bd
Solution: don't pass the values to t().
https://github.com/cbratschi/payload
See above.
area: core
Binaries: Node: 22.12.0 npm: 10.9.0 Yarn: 1.22.22 pnpm: N/A Relevant Packages: payload: 3.13.0 Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:23 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6031 Available memory (MB): 65536 Available CPU cores: 16
The text was updated successfully, but these errors were encountered:
Error from here:
payload/packages/translations/src/utilities/init.ts
Line 69 in 082c4f0
Sorry, something went wrong.
JessChowdhury
No branches or pull requests
Describe the Bug
JSON validation passes error strings to the t() function causing errors:
key not found: Cannot read properties of undefined (reading 'toString')
payload/packages/payload/src/fields/validations.ts
Line 355 in 6b051bd
payload/packages/payload/src/fields/validations.ts
Line 358 in 6b051bd
Solution: don't pass the values to t().
Link to the code that reproduces this issue
https://github.com/cbratschi/payload
Reproduction Steps
See above.
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: