Closed ardalis closed 4 years ago
I did try this but it didn't appear to help at all so I removed it: https://www.gatsbyjs.org/packages/gatsby-remark-normalize-paths/
This is most likely fmImagesToRelative
from gatsby-remark-relative-images
problem - it's listed in their FAQ (this is community plugin and is not maintained in this repo) - https://www.gatsbyjs.org/packages/gatsby-remark-relative-images/#im-getting-the-error-field-image-must-not-have-a-selection-since-type-string-has-no-subfields
I keep getting this error when I try to build locally. Most of the time, at least, my site builds successfully on Netlify's build servers.
This is most likely because the plugin I mentioned does seem to have caching issue - it works when .cache
is not there (so on first run), but fails on next runs (if gatsby
doesn't invalidate the .cache) - this can be seen in https://github.com/gatsbyjs/gatsby/issues/25095 as well
I actually do think this is in fact duplicate of #25095 so I'll close this one as duplicate in favour of already open issue
Summary
I keep getting this error when I try to build locally. Most of the time, at least, my site builds successfully on Netlify's build servers.
Output from
gatsby develop
after clean:Relevant information
My repo is publicly available here: https://github.com/ardalis/ardalis-com-gatsby
The site is online at https://ardalis.com
Environment (if relevant)
System: OS: Windows 10 10.0.18363 CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz Binaries: Node: 14.2.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.4 - ~\AppData\Roaming\npm\yarn.CMD npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD Languages: Python: 3.8.3 Browsers: Edge: 44.18362.449.0 npmPackages: gatsby: ^2.20.35 => 2.21.9 gatsby-dynamic-image: ^0.2.0 => 0.2.0 gatsby-image: ^2.3.5 => 2.4.0 gatsby-plugin-google-tagmanager: ^2.3.4 => 2.3.4 gatsby-plugin-mailchimp: ^5.1.2 => 5.1.2 gatsby-plugin-material-ui: ^2.1.8 => 2.1.8 gatsby-plugin-netlify: ^2.2.4 => 2.3.0 gatsby-plugin-netlify-cms: ^4.2.5 => 4.3.0 gatsby-plugin-paginate: ^1.12.0 => 1.12.0 gatsby-plugin-purgecss: ^5.0.0 => 5.0.0 gatsby-plugin-react-helmet: ^3.2.5 => 3.3.0 gatsby-plugin-robots-txt: ^1.5.1 => 1.5.1 gatsby-plugin-sass: ^2.2.4 => 2.3.0 gatsby-plugin-sharp: ^2.5.7 => 2.6.0 gatsby-plugin-sitemap: ^2.4.5 => 2.4.5 gatsby-plugin-twitter: ^2.3.1 => 2.3.1 gatsby-remark-copy-linked-files: ^2.2.4 => 2.3.1 gatsby-remark-images: ^3.2.6 => 3.3.0 gatsby-remark-normalize-paths: ^1.0.0 => 1.0.0 gatsby-remark-prismjs: ^3.5.2 => 3.5.2 gatsby-remark-relative-images: ^0.3.0 => 0.3.0 gatsby-source-filesystem: ^2.2.5 => 2.3.0 gatsby-transformer-remark: ^2.8.13 => 2.8.13 gatsby-transformer-sharp: ^2.4.7 => 2.5.0 npmGlobalPackages: gatsby-cli: 2.12.49
File contents (if changed)
gatsby-config.js
:package.json
: N/Agatsby-node.js
: N/Agatsby-browser.js
: N/Agatsby-ssr.js
: N/A