For anyone encountering this error > October of 2024, you simply need to move the { Amplify } import higher than the { generatecleint } import.