jellydn / next-validations

NextJS API Validations, support Zod, Yup, Fastest-Validator, Joi, and more
https://next-validations.productsway.com/
MIT License
48 stars 5 forks source link

ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG #959

Open matapo opened 2 days ago

matapo commented 2 days ago

Details

We are using Zod and upgrading "next-validations": "0.4.2" -> to "1.0.2" leads to an error during testing (jest) phase. Is there a missing step in configuration?

node v21.5.0

    expect(received).toMatchObject(expected)

    - Expected  - 1
    + Received  + 1

      Object {
    -   "error": "invalid login_hint provided",
    +   "code": "ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG",
      }

      634 |       .expect(400)
      635 |       .expect("Content-Type", /json/);
    > 636 |     expect(result.body).toMatchObject({
          |                         ^
      637 |       error: "invalid login_hint provided",
      638 |     });
      639 |   });
sweep-ai[bot] commented 2 days ago

❌ The ticket to PR workflow is no longer supported. We have moved to a new chat interface in private beta. Please contact us at team@sweep.dev to try it out.

:book: For more information on how to use Sweep, please read our documentation.

Tracking ID: b180bbcb95
jellydn commented 1 day ago

Hi @matapo Thank you for your report. This is new to me as well. Let me check and get back to you sometime this week.

jellydn commented 1 day ago

FYI - It sounds like a issue with nextjs https://github.com/vercel/next.js/issues/34685