-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Conflict when using ApolloSSR.prefetchAll() #378
Comments
Hi, Negezor)) |
I think this error occurs when the component template have some attributes like |
This has not been fixed, as before, when the function is used, fatal errors occur on the components.
|
Do you have a reproduction to share?
Le dim. 2 sept. 2018 à 16:30, Vladlen <notifications@github.com> a écrit :
… This has not been fixed, as before, when the function is used, fatal
errors occur on the components.
TypeError: Cannot read property '$ssrContext' of undefined
at Component.options.data (website/app/.nuxt/utils.js:34:0)
at createFakeInstance (C:\Users\negezor\projects\test-conflict\node_modules\vue-apollo\ssr\index.js:148:23)
at Promise (C:\Users\negezor\projects\test-conflict\node_modules\vue-apollo\ssr\index.js:32:16)
at new Promise (<anonymous>)
at walkTree (C:\Users\negezor\projects\test-conflict\node_modules\vue-apollo\ssr\index.js:30:10)
at Promise.all.components.map.component (C:\Users\negezor\projects\test-conflict\node_modules\vue-apollo\ssr\index.js:24:33)
at Array.map (<anonymous>)
at Object.exports.getQueriesFromTree (C:\Users\negezor\projects\test-conflict\node_modules\vue-apollo\ssr\index.js:24:16)
at Object.exports.prefetchAll (C:\Users\negezor\projects\test-conflict\node_modules\vue-apollo\ssr\index.js:15:18)
at beforeNuxtRender (website/app/.nuxt/apollo-module.js:94:0)
at promisify (website/app/.nuxt/utils.js:232:0)
at Promise.all.ssrContext.beforeRenderFns.map.fn (website/app/.nuxt/server.js:80:0)
at Array.map (<anonymous>)
at beforeRender (website/app/.nuxt/server.js:80:0)
at module.exports.../website/app/.nuxt/server.js.__webpack_exports__.default (website/app/.nuxt/server.js:256:0)
at process._tickCallback (internal/process/next_tick.js:68:7)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#378 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACqyfGUBVbN177Qk_s-QEo6CcXBnuwCyks5uW-uQgaJpZM4WWOfh>
.
|
Of course, here's the simplest example. |
Fixed in latest beta. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I update the apollo-module module under vue-apollo to v3.0.0-beta.20. I ran into the fact that when ApolloSSR.prefetchAll() is called, it conflicts with other modules that need a main VM. Nuxt.js error:
The text was updated successfully, but these errors were encountered: