My site name: https://clever-almeida-706def.netlify.app
Full build log: Netlify build log · GitHub
Site source: GitHub - jmccaffrey42/pack67-website
Hello all:
I am hitting an issue where my build fails trying to use the static query data (I believe)
9:31:39 AM: error “gatsby-plugin-netlify-cms” threw an error while running the
onCreateWebpackConfig lifecycle:
9:31:39 AM: Module not found: Error: Can’t resolve ‘…/…/public/static/d/1877296825.json’ in
‘/opt/build/repo/src/components’
9:31:39 AM:
9:31:39 AM:
9:31:39 AM:
9:31:39 AM: ModuleNotFoundError: Module not found: Error: Can’t resolve ‘…/…/public/stat
ic/d/1877296825.json’ in ‘/opt/build/repo/src/components’
I saw a similar issue locally when using yarn and (presumably) the yarn.lock file that came with gatsby. I noticed if I just did an npm install (not using that lock file, getting updated dependencies) my static query issues went away. Given this, I tried to set my netlify.toml file to use my local version of node (14) and my local version of npm and removed the settings related to yarn. This didn’t have an effect and my build is still failing on the same error.
[build]
publish = "public"
command = "npm run build"
functions = "lambda"
[build.environment]
NODE_VERSION = "14"
NPM_VERSION = "6.14"
Any ideas what is going on here or how I can troubleshoot it?