System Information
- Strapi Version: 3.2.5
- Operating System: MacOs Catalina v.10.15.7
- Database: PostgreSQL
- Node Version: v12.18.3
- NPM Version: 6.14.6
- Yarn Version: v1.13.0
Hello! I need some help making the validation error show on the UI when using CKEditor with a validation, ie. maxLength in this case.
I implemented CKEditor plugin following the docs guide: Field Registering - Strapi Developer Documentation and this CKEditor in Strapi Admin with a Custom Strapi Plugin - YouTube.
It works great but there is no error in the UI. I see it console log and it returns an error when I send a mutation in GraphQL playground.
Error response in playground and console log error:
"errors": [
{
"message": "ValidationError",
"locations": [
{
"line": 35,
"column": 3
}
],
"path": [
"createPost"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"data": {
"errors": {
"body":
"body must be at most 5 characters"
]
}
},
react_devtools_backend.js:2273
{err: s}
err: s
errors: ["components.Input.error.validation.maxLength"]
inner: [s]
message: "components.Input.error.validation.maxLength"
name: "ValidationError"
path: undefined
type: undefined
value: {updated_at: "2020-11-06T17:58:22.019Z", created_at: "2020-11-06T01:23:54.380Z",
published_at: Thu Nov 05 2020 17:29:05 GMT-0800 (Pacific Standard Time), cards: Array(3), id: 1, …}
stack: "ValidationError: components.Input.error.validation.maxLength↵ at
http://localhost:1337/admin/main.0bd6f745.chunk.js:1:1323608"
__proto__: Error
__proto__: Object