Skip to content

Conflict when using ApolloSSR.prefetchAll() #378

Closed
@negezor

Description

@negezor

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:

 TypeError: _vm._ssrStyle is not a function
  at Object.render (pages_releases_index.js:374:21)
  at Promise (C:\Users\negezor\projects\test-conflict\node_modules\vue-apollo\ssr\index.js:54:24)
  at new Promise (<anonymous>)
  at walkTree (C:\Users\negezor\projects\test-conflict\node_modules\vue-apollo\ssr\index.js:26:10)
  at Promise.all.components.map.component (C:\Users\negezor\projects\test-conflict\node_modules\vue-apollo\ssr\index.js:20:33)
  at Array.map (<anonymous>)
  at Object.exports.getQueriesFromTree (C:\Users\negezor\projects\test-conflict\node_modules\vue-apollo\ssr\index.js:20:16)
  at Object.exports.prefetchAll (C:\Users\negezor\projects\test-conflict\node_modules\vue-apollo\ssr\index.js:11:18)
  at beforeNuxtRender (server-bundle.js:2310:67)
  at promisify (server-bundle.js:3874:15)
  at Promise.all.ssrContext.beforeRenderFns.map.fn (server-bundle.js:3303:116)
  at Array.map (<anonymous>)
  at beforeRender (server-bundle.js:3303:50)
  at module.exports.../website/app/.nuxt/server.js.__webpack_exports__.default (server-bundle.js:3479:9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions