Home

Issue: 1305

Official vue-apollo example not working

[issue link]

Steps to reproduce:

  1. Download current nuxt.js dev version
  2. cd into examples/vue-apollo
  3. run npm install
  4. run npm run dev
  5. open http://localhost:3000/ in browser

Expected:
Working example

Actual:

Error: Network error: fetch is not defined
    at new ApolloError (/Users/benjixx/Downloads/nuxt.js-dev/examples/vue-apollo/node_modules/apollo-client/src/errors/ApolloError.js:34:28)
    at /Users/benjixx/Downloads/nuxt.js-dev/examples/vue-apollo/node_modules/apollo-client/src/core/QueryManager.js:325:41
    at /Users/benjixx/Downloads/nuxt.js-dev/examples/vue-apollo/node_modules/apollo-client/src/core/QueryManager.js:818:25
    at Array.forEach (native)
    at /Users/benjixx/Downloads/nuxt.js-dev/examples/vue-apollo/node_modules/apollo-client/src/core/QueryManager.js:815:27
    at Array.forEach (native)
    at QueryManager.broadcastQueries (/Users/benjixx/Downloads/nuxt.js-dev/examples/vue-apollo/node_modules/apollo-client/src/core/QueryManager.js:812:42)
    at /Users/benjixx/Downloads/nuxt.js-dev/examples/vue-apollo/node_modules/apollo-client/src/core/QueryManager.js:281:31
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
This bug report is available on Nuxt.js community (#c1156)