'Amlify react app throws Error: Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering
While running yarn build I get the following error:
Error: Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.
This didn't happened to me locally but only on the remote deployment, then I realized that remotely they use the latest amlify and next.js versions:

After updating next.js locally I managed to reproduce it locally - but didn't manage to solve.
Solution 1:[1]
There's a GitHub issue that tracks this error: https://github.com/aws-amplify/amplify-ui/issues/1780. A fix for it has been implemented and will be part of the next package release.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | slaymance |
