Module not found after updating to 1.6.16

default discord avatar
Ronok
9 months 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
  • discord user avatar
    jesschow
    Payload Team
    8 months ago

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

  • default discord avatar
    Ronok
    8 months ago

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

  • discord user avatar
    jesschow
    Payload Team
    8 months ago

    Ah wonderful 👍

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

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