bridge icon indicating copy to clipboard operation
bridge copied to clipboard

nuxt app instance unavailable with Apollo Graphql

Open Luferov opened this issue 3 years ago • 1 comments

Environment



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.

image

image

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)

Luferov avatar Aug 14 '22 18:08 Luferov

May it depend with https://github.com/nuxt/bridge/issues/436

Luferov avatar Aug 14 '22 18:08 Luferov