#✅ - The API configuration is missing. after updating to v6 with next14

5 messages · Page 1 of 1 (latest)

pulsar coyote
#

I am having an issue after i have migrate to next 14 and aws-amplify v6

when my initial page renders i get this warning about config missing. when i later call the generateClient() is says its missing credentials.

warningError: "The API configuration is missing. This is likely due to Amplify.configure() not being called prior to generateClient()."

I understand what it is saying but it cannot be true? I run Amplify config in the layout page where i can log the file so i know it is getting configured. then after the warning pop up in the console. I even call amplify.getConfig() to retrieve the data is it comes back just fine.

in the screen shot i call a login() then I call the aws signIn(). i get a return of logged in status "done". then I try to call the api to get additional user data from our db. right before I console log amplify.getconfig() the return shows a valid data object then my try catch block throw the error on signing in and after the internalgraphqlapi throw an erro say no credentials

very strange.

flat knoll
#

I think you would need to show the code to get help on this, since there might be some misconfiguration on your code

pulsar coyote
#

sure

pulsar coyote
#

found the problem it seemed the latest aws was not complete installed maybe a caching issue of the old one. however working now thanks

solemn violetBOT
#

✅ - The API configuration is missing. after updating to v6 with next14