Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Nuxt Axios breaks my netlify build #566

Open
EmilyFlocc opened this issue Feb 23, 2022 · 0 comments
Open

Adding Nuxt Axios breaks my netlify build #566

EmilyFlocc opened this issue Feb 23, 2022 · 0 comments

Comments

@EmilyFlocc
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant