This specifically started when tslib was upgraded past 2.5.1 and downgrading it back to 2.5.1 solves it. I don't understand the interplay between this package and (in my case) nuxt / nuxt/apollo to speak to anything further, hoping someone who has a better handle on this can figure it out!
Steps to reproduce:
- Install a fresh
nuxt app
- Add nuxt apollo (https://apollo.nuxtjs.org/)
- Build and serve
- Navigate anywhere and you get the above error
Now if you explicitly downgrade to 2.5.1 in your package.json and follow steps 3 and 4 everything works!