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.

Module not found after updating to 1.6.16

default discord avatar
ronok9922 years ago
3

I get Module not found: Error: Can't resolve 'fs' . When i

build

and run with

serve

script. The code build perfectly but when i start it gives error.


I also added webpack alias for fs. With adding it, fail to

build
  • default discord avatar
    jessrynkar2 years ago

    hi

    @707015513825345537

    - what version of payload were you on before you updated to 1.6.16?

  • default discord avatar
    ronok9922 years ago

    Thank you for replying but the problem was solved after using NODE_ENV = production

  • default discord avatar
    jessrynkar2 years ago

    Ah wonderful 👍

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.