I ran into this error on AWS Amplify after creating a new model (the model had a custom primary key and I'm not sure if that is the cause or not). However, I was able to fix this issue by deleting the indexedDB via Developer Tools. PLEASE DON'T DELETE YOUR ACTUAL DB. Refresh after deleting.