bridge
bridge copied to clipboard
nuxt app instance unavailable with Apollo Graphql
Environment
- Operating System:
Darwin - Node Version:
v16.15.1 - Nuxt Version:
2.16.0-27616340.013f051b - Package Manager:
[email protected] - Builder:
webpack - User Config:
ssr,app,alias,target,publicRuntimeConfig,head,modules,apollo,typescript,css,plugins,vuetify,build,serverHandlers,devServerHandlers,bridge,buildModules - Runtime Modules:
@nuxtjs/[email protected],@nuxtjs/[email protected],@nuxtjs/[email protected],@nuxtjs/[email protected],@pinia/[email protected] - Build Modules:
(),@nuxt/[email protected]
Reproduction
https://github.com/Luferov/nuxt-graphql-bug
git clone [email protected]:Luferov/nuxt-graphql-bug.git cd nuxt-graphql-bug yarn
OK, its work! But
rm -r node_modules && rm -r .nuxt && yarn
It is not work.
Describe the bug
I created yarn.lock from my project and project is wok. But if delete yarn.lock and run command yarn, Nuxt will update up nuxt 3-rc and project is not working.


Additional context
No response
Logs
[nuxt] [request error] nuxt app instance unavailable
at useNuxtApp (./.nuxt/dist/server/server.js:15661:13)
at useRuntimeConfig (./.nuxt/dist/server/server.js:16127:78)
at ./.nuxt/dist/server/server.js:66176:68
at module.exports../.nuxt/apollo-module.js.__webpack_exports__.default (./.nuxt/dist/server/server.js:404:25)
at createApp (./.nuxt/dist/server/server.js:1463:93)
at async module.exports../.nuxt/server.js.__webpack_exports__.default (./.nuxt/dist/server/server.js:3687:7)
at async Object.renderToString (./node_modules/vue-bundle-renderer/dist/index.mjs:264:19)
at async ./.nuxt/dev/index.mjs:499:20
at async ./node_modules/h3/dist/index.mjs:492:19
at async Server.nodeHandler (./node_modules/h3/dist/index.mjs:438:7)
May it depend with https://github.com/nuxt/bridge/issues/436