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.

SWC ERROR: Unable to Run server after upgraded Payload V2

default discord avatar
darrenk29last year
2

Hello guys, I running out ideas troubleshoot the issue. The server were running fine before migrate to V2, already followed all the guides and replaced following .


Even if i matching the packages.json to the public demo to test out, but still encounter the same issue, if i running fresh from public-demo , it was fine.



Tried remove node_modules and install again, it was the same issue.


Let me know if you guys have any solutions the resolve, thanks.



SWC ERROR: Unable to Run server after upgraded Payload V2

  • default discord avatar
    darrenk29last year

    Hi. Sorry for bothering as i'm still having the error, deleted node_modules and packages_lock, reinstall via pnpm. Previously were running on npm. Its like some kind of conflict on resolving the modules.



    I got solved by manually replacing node_module @swc from proper functioning fresh demo payload init to my existing payload without needed to use pnpm .

    image.png
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.