I created a nextjs project, and then added payload to it using this docs
https://payloadcms.com/docs/getting-started/installation
After I made some changes, used some other code, I get this error
Error: Cannot find module 'C:\Users\ursua\Development\nextjs\next-payload\dist\server.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
I could not find any dist/server.js file on other code