Error message: cannot read property 'req' of undefined
https://github.com/posva/pinia/issues/179
I'm not entirely sure why this happens. setSSRContext should just assign extra properties to the context, not replace it right?
Thanks for your reports 馃槃
The issue is that pinia wants to replace the setup function which conflicts with what nuxt-composition-api does.
EDIT: this was actually not the issue. Rather, some code that was incompatible with Nuxt wasn't being run until nuxt-composition-api added a global setup function at which point the incompatible code was run.
I see, thanks! It would be great if these two great libraries would be friendly with each other:))
I just found out about this issue in my project. It would be nice if this module provided some way for other modules/user code to hook into the global setup function.
I've submitted a PR to pinia that resolves this issue.
Most helpful comment
I see, thanks! It would be great if these two great libraries would be friendly with each other:))