nuxt-community / electron-template

Electron starter with nuxt.js
MIT License
252 stars 31 forks source link

Axios breaks the loading? #13

Closed alexisohayon closed 6 years ago

alexisohayon commented 7 years ago

Hi,

Nice package! I'm facing an issue that blocks the loading, apparently caused by the axios package (https://github.com/nuxt-community/axios-module). I get a "Cannot read property 'env' of undefined" error :

capture d ecran 2017-11-17 a 16 23 08

Any idea how to fix this? :) Thanks!

This question is available on Nuxt.js community (#c13)
yoanmarchal commented 6 years ago

i just deal with this issue with add to nuxt.config.js mode: 'spa' ex: https://github.com/nuxt/nuxt.js/blob/dev/examples/spa/nuxt.config.js

without it, it make my app silent fail

detrohutt commented 6 years ago

If this is still an issue with the new version and the workaround above doesn't work, let me know and I'll reopen this issue.

ashxdev commented 6 years ago

Hi @detrohutt, I've the same issue with latest nuxt-edge, nuxt-axios and electron. Any ideas how to fix this?