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.

payload runs fine for me locally but errors out for my coworkers

default discord avatar
pandazaar2 years ago
13

They just get this error and a blank page. Anyone have any clue what could be wrong?

  • default discord avatar
    notchr2 years ago

    hey

    @252469724376465408

    , how are your coworkers viewing the site?



    Are they cloning the project and running it locally?

  • discord user avatar
    jmikrut
    2 years ago

    and are they using NPM or yarn?

  • default discord avatar
    pandazaar2 years ago

    They just clone the project and run with npm



    Same as me

  • default discord avatar
    radishkitten2 years ago

    Did you change anything with the .gitignore?

  • default discord avatar
    pandazaar2 years ago

    Hmm i think i added


    .next to gitignore, would that mess something up?

  • discord user avatar
    jmikrut
    2 years ago

    no it shouldn't

  • default discord avatar
    pandazaar2 years ago

    Yeah definitely nothing else, though even deploying works fine

  • default discord avatar
    radishkitten2 years ago

    Anything different in your local environment vs your coworkers'? Are all of them facing this issue?



    Have you changed to a different folder then clone + build to replicate this issue?

  • default discord avatar
    pandazaar2 years ago

    I cloned and ran the project and works fine for me, really no special set up or anything.. really don't know how to approach this.

  • discord user avatar
    jmikrut
    2 years ago

    what npm version are they on?

  • default discord avatar
    pandazaar2 years ago

    We have also checked that our package locks are same and node versions

  • discord user avatar
    jmikrut
    2 years ago

    have them remove node modules and run

    npm install --legacy-peer-deps

    or try and use yarn

  • default discord avatar
    pandazaar2 years ago

    Works with yarn, no clue why not with npm but oh well, thank you everyone !!

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.