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.

Various issues with migrating to 2.0

default discord avatar
arctomachinelast year

I am doing migration from last 1.x version to 2.0 by following patchnote instruction. I encountered few issues on the way


1. (Already reported by other people) webpack + pnpm results in module not found error


2. Using vite adapter breaks admin panel on each change. After each change to source files nodemon restarts server. Admin panel then instantly disconnects and tries to reload itself. But since server restart takes some time, reloading of admin panel times out, only blank white page is displayed instead (sometimes default browser error page "unable to connect"). And it requires full manual reload to bring admin panel back to life


3. After applying database migration for drafts admin panel stops showing documents in collections with enabled versioning. They still exist, can be accessed from api and from relationship field. Only in collection list they are not displayed. It happens because admin panel sends request with

draft=true

search param, which then returns empty array. Withtout this search param it returns everything as intended (this is why documents are visible in other places). Access settings make no difference here, even with always returning true for access it still gives empty array

    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.