Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

GraphQL Error in module

default discord avatar
ivandominguezdomi2 years ago
6

Hi!!


My application made in payload and typescript works correctly locally but in production it gives the error attached in the photo. I am not using the Graphql features provided by payload



GraphQL Error in module

  • discord user avatar
    jmikrut
    2 years ago

    Are you using Docker?



    this may be a similar issue (we're working on a fix):



    https://github.com/payloadcms/payload/issues/2463
  • default discord avatar
    ivandominguezdomi2 years ago

    Yes, it is within a cluster of k8s. When the service is started at that time this error appears.


    Reading the issues you sent me I see that it is a problem of the internal dependencies of payload. Do you have any kind of solution for this moment?



    @364124941832159242

    Would an older version of payload work? If so, which one do you recommend?

  • discord user avatar
    jmikrut
    2 years ago

    you may need to figure out how to force / pin graphql version(s)



    are you using yarn?



    maybe look into

    resolutions
  • default discord avatar
    ivandominguezdomi2 years ago

    no, i'm using npm



    Ok, I look forward to hearing from you

  • discord user avatar
    jmikrut
    2 years ago

    you could try and use Yarn or install NPM with --legacy-peer-deps in the meantime

  • default discord avatar
    ivandominguezdomi2 years ago

    Yes, with yarn it worked fine, thank you very much.


    Too bad about npm!

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.