payloadcms / next-payload

A utility to deploy Payload serverlessly within a Next.js app
308 stars 44 forks source link

Error: Cannot find module 'payload/dist/bundlers/webpack/configs/base' #77

Closed CreateWebGit closed 10 months ago

CreateWebGit commented 11 months ago

I got this error when I try to do "npm run dev":

node:internal/modules/cjs/loader:1048 const err = new Error(message); ^

Error: Cannot find module 'payload/dist/bundlers/webpack/configs/base' Require stack:

ccapndave commented 11 months ago

I also get this after trying to upgrade to Payload 2.0

ruchernchong commented 11 months ago

@jmikrut mentioned on Discord that he and his team is working to get Payload 2.0 compatible with the plugin.

I supposed that this commit might have done it. I have yet to try.

https://github.com/payloadcms/next-payload/commit/bddcaeabba770bfbfd344ebdc000559a8b14ccc6

ccapndave commented 11 months ago

Yup, just tried and the latest commit has fixed this for me (I now have a different problem but will open that as a new issue).

JarrodMFlesch commented 10 months ago

This has been resolved, thanks for reporting!