Closed diresh-shrestha closed 3 years ago
Hi, thanks for the issue!
Are you sure this only happens on Netlify and not also during a "fresh" gatsby build
? Meaning: Delete .cache
and public
folder and run a gatsby build
. The error might suggest that you have incorrect imports in a file / some files.
Anyhow, if this isn't reproducible locally it might be best to ask Netlify support on this (especially if it works on other platforms like https://www.gatsbyjs.com/cloud/)
Hi, it turns out it does indeed not build locally either. I should have clarified that it runs gatsby develop
. I will try to find and fix the imports as you suggested.
Fixed! Just used VS Code's "Organize Imports" command on all my files and that fixed it.
Description
Hey guys. I decided to migrate my personal website from Gatsby v2 to v3. I had a few hiccups but I managed to sort them out and my website built fine locally. I committed the changes in
package.json
andpackage-lock.json
andgatsby-config.js
and pushed it. I went to Netlify (where the site is hosted) and saw that the build failed. I don't know if this is a Netlify issue or a Gatsby issue.Steps to reproduce
I just followed the official guide and updated all my packages and plugins. Here's the repo: https://github.com/diresh-shrestha/diresh.io
Expected result
Build successfully on Netlify with the site going live.
Actual result
Environment