Usagi Love
Issues with Amplify DataStore Unexpected token 'export'
Losing my mind over this issue, I'm using Amplify v6 with Nuxt3 and using
amplify codegen models
it creates models to use with the datastore.
however importing these will result in an error.
I tried on Windows and Linux(WSL)/Docker and all give this error.
I also tried with just a pure Vite + Vue app and it works as normal so there has to be something wrong with Nuxt
If someone has experience with DataStores/Amplify that would be highly appreciated.
this is the code that causes it.2 replies