Hey Netlify team,
I am trying to deploy my personal website using Gatsby, but it is failng to deploy.
It is working fine in my local environment. I have worked my way through fixing the
issue from the first failed deploy however this one I am having more trouble with.
Gatsby has a lot going on which I am not too familiar with. The main issue looks like
a TypeError in createPages.js from the Deploy log below. Any suggestions on what I
could do to fix the issue and have a successful deployment would be great.
Thanks in advance,
The problem appears to be discussed here:
opened 10:16AM - 30 Oct 21 UTC
closed 07:07PM - 01 Nov 21 UTC
Nice looking theme, but I run into issues with a fresh install of gatsby - error… s below:
```
ERROR #98123 WEBPACK
Generating development SSR bundle failed
/home/matthewjones/Pers/portfolio-minimal/node_modules/gatsby-theme-portfolio-minimal/src/hooks/useSiteConfiguration.tsx: Cannot read property 'path' of undefined
File: node_modules/gatsby-theme-portfolio-minimal/src/hooks/useSiteConfiguration.tsx
ERROR #98123 WEBPACK
Generating development SSR bundle failed
/home/matthewjones/Pers/portfolio-minimal/node_modules/gatsby-theme-portfolio-minimal/src/hooks/useSiteMetadata.tsx: Cannot read property 'path' of undefined
File: node_modules/gatsby-theme-portfolio-minimal/src/hooks/useSiteMetadata.tsx
ERROR #98123 WEBPACK
Generating development SSR bundle failed
/home/matthewjones/Pers/portfolio-minimal/node_modules/gatsby-theme-portfolio-minimal/src/sections/About/data.tsx: Cannot read property 'path' of undefined
File: node_modules/gatsby-theme-portfolio-minimal/src/sections/About/data.tsx
ERROR #98123 WEBPACK
Generating development SSR bundle failed
/home/matthewjones/Pers/portfolio-minimal/node_modules/gatsby-theme-portfolio-minimal/src/sections/Articles/data.tsx: Cannot read property 'path' of undefined
File: node_modules/gatsby-theme-portfolio-minimal/src/sections/Articles/data.tsx
ERROR #98123 WEBPACK
Generating development SSR bundle failed
/home/matthewjones/Pers/portfolio-minimal/node_modules/gatsby-theme-portfolio-minimal/src/sections/Contact/data.tsx: Cannot read property 'path' of undefined
File: node_modules/gatsby-theme-portfolio-minimal/src/sections/Contact/data.tsx
ERROR #98123 WEBPACK
Generating development SSR bundle failed
/home/matthewjones/Pers/portfolio-minimal/node_modules/gatsby-theme-portfolio-minimal/src/sections/Hero/data.tsx: Cannot read property 'path' of undefined
File: node_modules/gatsby-theme-portfolio-minimal/src/sections/Hero/data.tsx
ERROR #98123 WEBPACK
Generating development SSR bundle failed
/home/matthewjones/Pers/portfolio-minimal/node_modules/gatsby-theme-portfolio-minimal/src/sections/Interests/data.tsx: Cannot read property 'path' of undefined
File: node_modules/gatsby-theme-portfolio-minimal/src/sections/Interests/data.tsx
ERROR #98123 WEBPACK
Generating development SSR bundle failed
/home/matthewjones/Pers/portfolio-minimal/node_modules/gatsby-theme-portfolio-minimal/src/sections/Legal/data.tsx: Cannot read property 'path' of undefined
File: node_modules/gatsby-theme-portfolio-minimal/src/sections/Legal/data.tsx
ERROR #98123 WEBPACK
Generating development SSR bundle failed
/home/matthewjones/Pers/portfolio-minimal/node_modules/gatsby-theme-portfolio-minimal/src/sections/Projects/data.tsx: Cannot read property 'path' of undefined
File: node_modules/gatsby-theme-portfolio-minimal/src/sections/Projects/data.tsx
not finished Building development bundle - 2.454s
```
Output of `gatsby info`
```
System:
OS: Linux 5.11 Ubuntu 20.04.3 LTS (Focal Fossa)
CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
Yarn: 1.22.15 - /usr/bin/yarn
npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
Languages:
Python: 3.9.6 - /home/matthewjones/.pyenv/shims/python
Browsers:
Chrome: 95.0.4638.54
Firefox: 93.0
npmPackages:
gatsby: ^3.7.1 => 3.14.5
gatsby-theme-portfolio-minimal: latest => 2.6.3
```
Any help would be appreciated :)