question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validation resolvers don't work

See original GitHub issue

What you were expecting: Form validation based on the yup schema. Error messages to display at the correct places

What happened instead: Errors in the console, and no validation

ncaught (in promise) TypeError: e is not a function
    at _callee13$ (getSimpleValidationResolver.ts:25:1)
    at tryCatch (runtime.js:63:1)
    at Generator.invoke [as _invoke] (runtime.js:294:1)
    at Generator.next (runtime.js:119:1)
    at asyncGeneratorStep (asyncToGenerator.js:3:1)
    at _next (asyncToGenerator.js:25:1)
    at asyncToGenerator.js:32:1
    at new Promise (<anonymous>)
    at Object.<anonymous> (asyncToGenerator.js:21:1)
    at Object.resolver (getSimpleValidationResolver.ts:25:1)

Other information:

Environment

  • React-admin version: 4.0.0.-beta.1.0
  • Last version that did not exhibit the issue (if applicable):
  • React version:
  • Browser:
  • Stack trace (in case of a JS error):

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
WiXSLcommented, Mar 24, 2022

Reproduced. Thanks for the report

0reactions
WiXSLcommented, Mar 28, 2022

Fixed by #7437

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validation via resolvers does not work with dependent fields ...
So re-validate triggers for just the field that's being interacted with, not the whole set of values in the form? That would mean...
Read more >
Resolvers - Apollo GraphQL Docs
A resolver is a function that's responsible for populating the data for a single ... If you don't define a resolver for a...
Read more >
Resolvers | NestJS - A progressive Node.js framework
Resolvers. Resolvers provide the instructions for turning a GraphQL operation (a query, mutation, or subscription) into data. They return the same shape of ......
Read more >
Updating of DNS Validating Resolvers with the Latest Trust ...
To test whether or not the resolver you operate is doing DNSSEC validation, you can use the special domain "dnssec-failed.org" that is ...
Read more >
Enabling DNSSEC validation in Amazon Route 53
You enable DNSSEC validation on your VPC detail page. DNSSEC validation only applies to public signed names in Amazon Route 53, and not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found