Ok, I give up. I need some help here… I have used this set up for about two years to my Gatsby / Netlify forms with no issues, but for this project the forms simply aren’t generating in the UI.
The site is at: khol.netlify.app
Github at: https://github.com/EricPhifer/khol-gatsby
Here’s the process I’ve gone through… aside from online, Netlify docs and in this forum searches, I’ve implemented the suggestions here: How to Integrate Netlify’s Form Handling in a React App
Initially I had this as a single page website, but saw that multiple forms on one page requires some extra coding magic that I don’t want to get into so I moved the forms to separate pages.
I have included data-netlify="true"
on each with a unique name=" "
attribute as the docs say. I tried to change them all to the shorter netlify
within the instead and neither worked.
I have included the
<input type="hidden" name="form-name" value="contact" />
I’ve never needed it in the past, but I did also implement the html file the article recommends to help the post-processing with no change.
I thought maybe I just need to clear the cache before it builds to trigger it seeing the <form netlify>
attribute, but no change. I’m including the build notes below, please let me know what I can do to get forms to show up in the UI for this project. Thank you.
Netlify Build
12:46:41 PM: ────────────────────────────────────────────────────────────────
12:46:41 PM:
12:46:41 PM: ❯ Version
12:46:41 PM: @netlify/build 29.12.1
12:46:41 PM:
12:46:41 PM: ❯ Flags
12:46:41 PM: baseRelDir: true
12:46:41 PM: buildId: 6495e84461232a0008ce6f9e
12:46:41 PM: config: /opt/build/repo/netlify.toml
12:46:41 PM: deployId: 6495e84461232a0008ce6fa0
12:46:41 PM: tracing:
12:46:41 PM: enabled: 'false'
12:46:41 PM: host: 10.65.29.16
12:46:41 PM: parentSpanId: 047c81e39d918bf4
12:46:41 PM: traceFlags: '00'
12:46:41 PM: traceId: 4db5e66d7691cbf6eeec5c8cd11f847b
12:46:41 PM:
12:46:41 PM: ❯ Current directory
12:46:41 PM: /opt/build/repo
12:46:41 PM:
12:46:41 PM: ❯ Config file
12:46:41 PM: /opt/build/repo/netlify.toml
12:46:41 PM:
12:46:41 PM: ❯ Context
12:46:41 PM: production
12:46:41 PM:
12:46:41 PM: ❯ Loading plugins
12:46:41 PM: - @netlify/plugin-gatsby@3.6.2 from Netlify app
12:46:41 PM: - @netlify/plugin-lighthouse@4.1.1 from Netlify app
12:46:42 PM:
12:46:42 PM: @netlify/plugin-gatsby (onPreBuild event)
12:46:42 PM: ────────────────────────────────────────────────────────────────
12:46:42 PM:
12:46:43 PM: Found a Gatsby cache. We’re about to go FAST. ⚡️
12:46:43 PM:
12:46:43 PM: (@netlify/plugin-gatsby onPreBuild completed in 240ms)
12:46:43 PM:
12:46:43 PM: Build command from Netlify app
12:46:43 PM: ────────────────────────────────────────────────────────────────
12:46:43 PM:
12:46:43 PM: $ npm run build
12:46:43 PM: > kinnas-house-of-love@1.0.0 build
12:46:43 PM: > gatsby build
12:46:45 PM: success compile gatsby files - 1.169s
12:46:45 PM: success load gatsby config - 0.030s
12:46:46 PM: success load plugins - 0.782s
12:46:46 PM: success onPreInit - 0.006s
12:46:46 PM: success delete worker cache from previous builds - 0.001s
12:46:46 PM: info [sanity] Fetching remote GraphQL schema
12:46:52 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:46:52 PM: info [sanity] Stitching GraphQL schemas from SDL
12:46:52 PM: success initialize cache - 5.485s
12:46:52 PM: success copy gatsby files - 0.099s
12:46:52 PM: success Compiling Gatsby Functions - 0.158s
12:46:52 PM: success onPreBootstrap - 0.169s
12:46:52 PM: success createSchemaCustomization - 0.009s
12:46:54 PM: info [sanity] 0 documents updated.
12:46:56 PM: success Clean up stale nodes - 0.006s - 8/0 0.00/s
12:46:56 PM: success Checking for changed pages - 0.000s
12:46:56 PM: success source and transform nodes - 3.400s
12:46:57 PM: info Writing GraphQL type definitions to /opt/build/repo/.cache/schema.gql
12:46:58 PM: success building schema - 2.387s
12:46:58 PM: success createPages - 0.004s
12:46:59 PM: success createPagesStatefully - 0.398s
12:46:59 PM: info Total nodes: 103, SitePage nodes: 7 (use --verbose for breakdown)
12:46:59 PM: success Checking for changed pages - 0.000s
12:46:59 PM: success Cleaning up stale page-data - 0.001s
12:46:59 PM: success onPreExtractQueries - 0.088s
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: success extract queries from components - 6.400s
12:47:05 PM: info [sanity] Fetching remote GraphQL schema
12:47:05 PM: success write out redirect data - 0.001s
12:47:05 PM: success onPostBootstrap - 0.000s
12:47:05 PM: info bootstrap finished - 22.310s
12:47:05 PM: success write out requires - 0.003s
12:47:06 PM: success Building production JavaScript and CSS bundles - 0.498s
12:47:06 PM: success Building HTML renderer - 0.415s
12:47:06 PM: success Execute page configs - 0.038s
12:47:06 PM: success Caching Webpack compilations - 0.000s
12:47:10 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:10 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:10 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:10 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:10 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:10 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:11 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:11 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:12 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:12 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:12 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:12 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:12 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:12 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:13 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:13 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:13 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:13 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:13 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:13 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:13 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:13 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:13 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:13 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:13 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:13 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:13 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:13 PM: info [sanity] Transforming to Gatsby-compatible GraphQL SDL
12:47:13 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:13 PM: info [sanity] Stitching GraphQL schemas from SDL
12:47:14 PM: success run queries in workers - 7.882s - 0/0 0.00/s
12:47:14 PM: success Merge worker state - 0.033s
12:47:16 PM: info There are no new or changed html files to build.
12:47:16 PM: info There are no new or changed slice html files to build.
12:47:16 PM: success stiching slices - 0.000s
12:47:16 PM: info [gatsby-plugin-netlify] Creating SSR/DSG redirects...
12:47:16 PM: info [gatsby-plugin-netlify] Created 0 SSR/DSG redirects...
12:47:16 PM: success onPostBuild - 0.194s
12:47:17 PM:
12:47:17 PM: Pages
12:47:17 PM: ┌ src/pages/404.js
12:47:17 PM: │ ├ /404/
12:47:17 PM: │ └ /404.html
12:47:17 PM: ├ src/pages/connect.js
12:47:17 PM: │ └ /connect/
12:47:17 PM: ├ src/pages/index.js
12:47:17 PM: │ └ /
12:47:17 PM: ├ src/pages/privacypolicy.js
12:47:17 PM: │ └ /privacypolicy/
12:47:17 PM: ├ src/pages/termsconditions.js
12:47:17 PM: │ └ /termsconditions/
12:47:17 PM: └ src/pages/volunteer.js
12:47:17 PM: └ /volunteer/
12:47:17 PM: ╭────────────────────────────────────────────────────────────────────╮
12:47:17 PM: │ │
12:47:17 PM: │ (SSG) Generated at build time │
12:47:17 PM: │ D (DSG) Deferred static generation - page generated at runtime │
12:47:17 PM: │ ∞ (SSR) Server-side renders at runtime (uses getServerData) │
12:47:17 PM: │ λ (Function) Gatsby function │
12:47:17 PM: │ │
12:47:17 PM: ╰────────────────────────────────────────────────────────────────────╯
12:47:17 PM: info Done building in 34.329608686 sec
12:47:18 PM:
12:47:18 PM: (build.command completed in 35.3s)
12:47:18 PM:
12:47:18 PM: @netlify/plugin-gatsby (onBuild event)
12:47:18 PM: ────────────────────────────────────────────────────────────────
12:47:18 PM:
12:47:18 PM: Skipping Gatsby Functions and SSR/DSG support
12:47:18 PM:
12:47:18 PM: (@netlify/plugin-gatsby onBuild completed in 5ms)
12:47:18 PM:
12:47:18 PM: @netlify/plugin-gatsby (onPostBuild event)
12:47:18 PM: ────────────────────────────────────────────────────────────────
12:47:18 PM:
12:47:18 PM: Skipping Gatsby Functions and SSR/DSG support
12:47:18 PM:
12:47:18 PM: (@netlify/plugin-gatsby onPostBuild completed in 273ms)
12:47:18 PM:
12:47:18 PM: @netlify/plugin-lighthouse (onPostBuild event)
12:47:18 PM: ────────────────────────────────────────────────────────────────
12:47:18 PM:
12:47:18 PM: Generating Lighthouse report. This may take a minute…
12:47:18 PM: Running Lighthouse on public/
12:47:18 PM: Serving and scanning site from directory public
12:47:32 PM: Lighthouse scores for public/
12:47:32 PM: - Performance: 83
12:47:32 PM: - Accessibility: 80
12:47:32 PM: - Best Practices: 100
12:47:32 PM: - SEO: 85
12:47:32 PM: - PWA: 30
12:47:32 PM:
12:47:32 PM: (@netlify/plugin-lighthouse onPostBuild completed in 13.3s)
12:47:32 PM:
12:47:34 PM: (Netlify Build completed in 53s)
12:47:34 PM: Section completed: building
12:47:41 PM: Finished processing build request in 2m0.668s