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.

Prod: Can't find module (Payload plugins)

default discord avatar
steveninety2 years ago
1

I keep having production errors related to the payload plugin dependencies:



Error: Cannot find module '/home/node/app/node_modules/@payloadcms/plugin-form-builder/dist/index.js'. Please verify that the package.json has a valid "main" entry



I am working with an unmodified "template-website" clone, deployed to Railway. The project builds fine, and locally the built project is served properly too, but production deployment keeps failing due to conflicting peer dependencies. I built the project with the Dockerfile template from the docs, which uses Yarn to build.



Is there a known solution for this issue? Thanks for any help 🙂

  • discord user avatar
    jacobsfletch
    2 years ago

    I just published a new version of the form-builder plugin which should resolve your issues. Go ahead and

    yarn

    again to get the latest version

    1.0.15

    . Let me know if you have any other troubles getting this installed!

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.