Static GitHub Issues

[1305] Official vue-apollo example not working

prev: is it possible to run sails & nuxt on a single express instance?
next: NPM run dev can't move up to 64% NPM run build can't move up to 91%

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)
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1156">#c1156</a>)</em></sub></div>