Like what we’re doing? Star us on GitHub!

Module not found after updating to 1.6.16

Ronok
3 weeks 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
image.png
image.png
  • jesschow
    Payload Team
    2 weeks ago

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

  • Ronok
    2 weeks ago

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

  • jesschow
    Payload Team
    2 weeks ago

    Ah wonderful đź‘Ť

Open the post
Continue the discussion in Discord
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More