SWC ERROR: Unable to Run server after upgraded Payload V2

default discord avatar
darrenk29
last month
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
    darrenk29
    last month

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