-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'req' of undefined #179
Comments
This issue disappears if I uninstall |
Apart from creating a different plugin for nuxt to override the app.context like they do, I can't see a different solution |
@posva I've now exposed a // In a plugin file
import { onGlobalSetup } from 'nuxt-composition-api'
import { setActiveReq } from 'pinia' // if this is exposed
export default () => {
onGlobalSetup((props, context) => {
setActiveReq(context.ssrContext.req)
})
} Let me know if there is anything else I can do from the |
I haven't looked and probably won't be able to for a while but the solution shouldn't need any extra code from the users 🤔 |
It was intended for you, not the users... 😄 However, I was mistaken on the cause; it's not one of the packages overwriting the other's setup function. I've submitted a PR. |
Seems to happen at
setActiveReq(context.ssrContext.req);
universal mode
The text was updated successfully, but these errors were encountered: