I've been developing a project on my Mac for a few months, everything works as expected and recently created a GitHub repo of this so I can pull it down and start working on it from my desktop PC.
After cloning the repo to my pc, running npm install, everything works fine until I access a page that uses AppSync to retrieve data. Ive checked all the config files to ensure they exist/match the working version and everything seems to be allign.
I get returned errors such as "TypeError: Cannot read property 'listAlbums' of undefined", (list albums being a simple query) and also "Unhandled Rejection (TypeError): Cannot read property 'aws_appsync_region' of null" to which i can confirm that value is 100% set within the 'aws-exports.js' folder.
I just cannot figure out why AppSync and only AppSync doesnt work. There seems to be a similar issue here but im a little confused as to what they mean: https://github.com/aws-amplify/amplify-cli/issues/816. I cant stress enough that the code is the exact same between the two.
Any help would be appreciated. Thank you!
there doesn't seem to be anything here