nuxt-community / axios-module

Secure and easy axios integration for Nuxt 2
https://axios.nuxtjs.org
MIT License
1.2k stars 245 forks source link

Adding Nuxt Axios breaks my netlify build #566

Open EmilyFlocc opened 2 years ago

EmilyFlocc commented 2 years ago

I have spent a few hours debugging why my build is failing on netlify, and it only fails when I add in @nuxt/axios.

The error causing the deploy to fail is below:

Screenshot 2022-02-23 at 10 36 19

I suspect its because I am using Nuxt 2 still instead of 3 (I have other dependencies that aren't compatible with nuxt 3 yet so can't upgrade), but my list of versions are below:

"dependencies": { "@nuxtjs/axios": "^5.13.6", "@nuxtjs/gtm": "^2.4.0", "@nuxtjs/recaptcha": "^1.0.4", "@nuxtjs/sanity": "^0.9.1", "@nuxtjs/style-resources": "^1.0.0", "@nuxtjs/svg": "^0.1.12", "@sanity/client": "^2.2.6", "@sanity/image-url": "^0.140.22", "@tailwindcss/typography": "^0.4.0", "lodash.camelcase": "^4.3.0", "lodash.debounce": "^4.0.8", "lodash.upperfirst": "^4.3.1", "node-fetch": "^2.6.1", "nuxt": "^2.15.5", "nuxt-lazy-load": "^1.2.5", },

The project runs locally in both ssr and static mode, so I'm not sure why its having issues with nuxt core on netlify, but is there a version of axios I should downgrade to that will work with my set up?

Thanks!