[Solved] Hydration failed because the initial UI does not match what was rendered on the server


react18 package error in nextjs, here is the solution:

    1. Downgrade react 18 to 17 as the screenshot below

Read More: