#APIError: The collection with slug posts can't be found. Find Operation.

2 messages · Page 1 of 1 (latest)

crimson dagger
#

Hello everyone!

I have set my project as in following example of custom server https://github.com/payloadcms/payload/tree/main/examples/custom-server APIError: The collection with slug posts can't be found. Find Operation.

But when I try run "npm run build" script I got the error message:


Error occurred prerendering page "/posts". Read more: https://nextjs.org/docs/messages/prerender-error

APIError: The collection with slug posts can't be found. Find Operation.

How to fix this issue? Maybe anyone of you had ran into similar issue.

GitHub

The best way to build a modern backend + admin UI. No black magic, all TypeScript, and fully open-source, Payload is both an app framework and a headless CMS. - payloadcms/payload

somber lodgeBOT