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
Ronoklast year
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
  • discord user avatar
    jesschow
    last year

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

  • default discord avatar
    Ronoklast year

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

  • discord user avatar
    jesschow
    last year

    Ah wonderful 👍

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.