-
Notifications
You must be signed in to change notification settings - Fork 2
Common Errors
Atlas Gong edited this page Feb 7, 2025
·
2 revisions
Read Dynamic APIs are Asynchronous and run
npx @next/codemod@canary next-async-request-api .Then commit
git commit -m "fix: sync dynamic APIs"Do not edit any files in the (payload) folder, with the exception of custom.scss and layout.tsx. To address any type issues, consider upgrading Payload to the latest version. CAUTION: Verify that the project is already on the latest version of Payload before proceeding. Upgrading without this confirmation could introduce unexpected issues, so ensure the decision to upgrade is made carefully. If upgrading is not feasible, explore alternative solutions.
To update Payload, use the following command:
npx create-payload-app@latestThen commit:
git commit -m "cms: fix ts errors in (payload)"Ensure you add a message if an upgrade was actually made (i.e. the version changed).