NextJS Build Error

My website: fermata-staging.netlify.app

I’ve been getting build errors when deploying but locally it all builds OK, not really sure how to debug as the error messages aren’t super helpful at this particular case

build log:



3:36:39 PM: ​
3:36:39 PM: $ yarn build
3:36:40 PM: yarn run v1.22.19
3:36:40 PM: $ next build
3:36:40 PM: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
3:36:40 PM: info  - Linting and checking validity of types...
3:36:42 PM: info  - Creating an optimized production build...
3:36:56 PM: info  - Compiled successfully
3:36:56 PM: info  - Collecting page data...
3:37:02 PM: info  - Generating static pages (0/103)

3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:439:12)
3:37:05 PM:     at async Client.getCachedRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:589:31)
3:37:05 PM:     at async Client.getResolvedRefString (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:626:30)
3:37:05 PM:     at async Client.buildQueryURL (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:486:31)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:322:17)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:250:24)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM: Error occurred prerendering page "/en/article/a-win-win-situation-fm-opportunities-in-bidirectional-ev-charging". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:439:12)
3:37:05 PM:     at async Client.getCachedRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:589:31)
3:37:05 PM:     at async Client.getResolvedRefString (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:626:30)
3:37:05 PM:     at async Client.buildQueryURL (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:486:31)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:322:17)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:250:24)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM: Error occurred prerendering page "/en/article/heliox-and-fermata-energy-forge-vehicle-to-everything-v2x-smart-energy-management-partnership". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:439:12)
3:37:05 PM:     at async Client.getCachedRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:589:31)
3:37:05 PM:     at async Client.getResolvedRefString (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:626:30)
3:37:05 PM:     at async Client.buildQueryURL (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:486:31)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:322:17)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:250:24)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM: Error occurred prerendering page "/en/article/this-new-england-utility-will-soon-pay-ev-owners-to-help-to-back-up-the-grid". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:323:20)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:250:24)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM:     at async /opt/build/repo/node_modules/next/dist/export/worker.js:247:32
3:37:05 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
3:37:05 PM: Error occurred prerendering page "/en/article/biden-plan-to-electrify-federal-fleet-will-boost-ev-market-but-many-questions-remain-experts-say". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:439:12)
3:37:05 PM:     at async Client.getCachedRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:589:31)
3:37:05 PM:     at async Client.getResolvedRefString (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:626:30)
3:37:05 PM:     at async Client.buildQueryURL (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:486:31)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:322:17)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:250:24)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM: Error occurred prerendering page "/en/article/anna-demeo-joins-vehicle-to-everything-leader-fermata". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:323:20)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:250:24)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM:     at async /opt/build/repo/node_modules/next/dist/export/worker.js:247:32
3:37:05 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
3:37:05 PM: Warning: data for page "/article/[slug]" (path "/article/fermata-energy-named-one-of-the-tech-tribunes-2022-best-tech-startups-in-charlottesville") is 269 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
3:37:05 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
3:37:05 PM: Error occurred prerendering page "/en/article/marty-weiner-joins-fermata-energys-advisory-board". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:439:12)
3:37:05 PM:     at async Client.getCachedRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:589:31)
3:37:05 PM:     at async Client.getResolvedRefString (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:626:30)
3:37:05 PM:     at async Client.buildQueryURL (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:486:31)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:322:17)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:250:24)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM: Error occurred prerendering page "/en/how-v2x-works". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.get (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:314:12)
3:37:05 PM:     at async Client.dangerouslyGetAll (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:344:22)
3:37:05 PM:     at async Client.getAllByType (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:402:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/[slug].js:385:31)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM:     at async /opt/build/repo/node_modules/next/dist/export/worker.js:247:32
3:37:05 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
3:37:05 PM: Error occurred prerendering page "/en/article/bigelow-tea-working-to-reduce-carbon-footprint-one-electric-vehicle-at-a-time". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:439:12)
3:37:05 PM:     at async Client.getCachedRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:589:31)
3:37:05 PM:     at async Client.getResolvedRefString (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:626:30)
3:37:05 PM:     at async Client.buildQueryURL (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:486:31)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:322:17)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:250:24)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM: Error occurred prerendering page "/en/article/electric-vehicle-generates-revenue-and-energy-savings". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:439:12)
3:37:05 PM:     at async Client.getCachedRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:589:31)
3:37:05 PM:     at async Client.getResolvedRefString (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:626:30)
3:37:05 PM:     at async Client.buildQueryURL (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:486:31)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:322:17)
3:37:05 PM:     at async Client.getSingle 
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:259:22)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM:     at async /opt/build/repo/node_modules/next/dist/export/worker.js:247:32
3:37:05 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
3:37:05 PM: Error occurred prerendering page "/en/about". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:323:20)
3:37:05 PM:     at async Client.getByUID (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:368:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/[slug].js:406:18)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM:     at async /opt/build/repo/node_modules/next/dist/export/worker.js:247:32
3:37:05 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
3:37:05 PM: Error occurred prerendering page "/en/article/firstlight-power-fermata-energy-and-skyview-ventures". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:439:12)
3:37:05 PM:     at async Client.getCachedRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:589:31)
3:37:05 PM:     at async Client.getResolvedRefString (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:626:30)
3:37:05 PM:     at async Client.buildQueryURL (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:486:31)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:322:17)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:250:24)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM: Error occurred prerendering page "/en/article/revel-ninedot-energy-and-fermata-energy-announce-groundbreaking". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:439:12)
3:37:05 PM:     at async Client.getCachedRepository (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:589:31)
3:37:05 PM:     at async Client.getResolvedRefString (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:626:30)
3:37:05 PM:     at async Client.buildQueryURL (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:486:31)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:322:17)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:250:24)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM: Error occurred prerendering page "/en/article/vehicle-to-grid-technology-saves-950-in-4-months". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:323:20)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:251:20)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM:     at async /opt/build/repo/node_modules/next/dist/export/worker.js:247:32
3:37:05 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
3:37:05 PM: Error occurred prerendering page "/en/article/vehicle-to-building-pilot-installed-by-fermata-energy-at-north-boulder-recreation-center". Read more: https://nextjs.org/docs/messages/prerender-error

3:37:05 PM: Error occurred prerendering page "/en/article/bidirectional-evs-could-lend-a-hand-in-power-crisis". Read more: https://nextjs.org/docs/messages/prerender-error
3:37:05 PM: Error: An invalid API response was returned
3:37:05 PM:     at Client.fetch (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:674:11)
3:37:05 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:05 PM:     at async Client.getFirst (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:323:20)
3:37:05 PM:     at async Client.getSingle (file:///opt/build/repo/node_modules/@prismicio/client/dist/index.js:392:12)
3:37:05 PM:     at async getStaticProps (/opt/build/repo/.next/server/pages/article/[slug].js:251:20)
3:37:05 PM:     at async renderToHTML (/opt/build/repo/node_modules/next/dist/server/render.js:384:20)
3:37:05 PM:     at async /opt/build/repo/node_modules/next/dist/export/worker.js:247:32
3:37:05 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)

3:37:05 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
3:37:06 PM: info  - Generating static pages (103/103)
3:37:06 PM: > Build error occurred
3:37:06 PM: Error: Export encountered errors on following paths:
3:37:06 PM: 	/[slug]: /en/about
3:37:06 PM: 	/[slug]: /en/how-v2x-works
3:37:06 PM: 	/[slug]: /en/knowledge-hub
3:37:06 PM: 	/[slug]: /en/search-results
3:37:06 PM: 	/[slug]: /en/solutions
3:37:06 PM: 	/[slug]: /en/utilities
3:37:06 PM: 	/[slug]: /en/website-privacy-policy
3:37:06 PM: 	/article/[slug]: /en/article/a-win-win-situation-fm-opportunities-in-bidirectional-ev-charging
3:37:06 PM: 	/article/[slug]: /en/article/anna-demeo-joins-vehicle-to-everything-leader-fermata
3:37:06 PM: 	/article/[slug]: /en/article/axios-expert-voices-claire-broido-johnson
3:37:06 PM: 	/article/[slug]: /en/article/batteries-on-wheels-the-electric-vehicle-connection-to-the-grid-that-could-help-decarbonize-utility-power
3:37:06 PM: 	/article/[slug]: /en/article/biden-plan-to-electrify-federal-fleet-will-boost-ev-market-but-many-questions-remain-experts-say
3:37:06 PM: 	/article/[slug]: /en/article/bidirectional-evs-could-lend-a-hand-in-power-crisis
3:37:06 PM: 	/article/[slug]: /en/article/bigelow-tea-enhances-sustainability-with-a-vehicle-to-grid-system
3:37:06 PM: 	/article/[slug]: /en/article/bigelow-tea-working-to-reduce-carbon-footprint-one-electric-vehicle-at-a-time
3:37:06 PM: 	/article/[slug]: /en/article/building-clean-energy-in-rural-north-carolina-npr
3:37:06 PM: 	/article/[slug]: /en/article/can-a-garage-full-of-revel-taxis-stop-the-next-blackout
3:37:06 PM: 	/article/[slug]: /en/article/claire-broido-johnson-joins-vehicle-to-everything-v2x
3:37:06 PM: 	/article/[slug]: /en/article/department-of-energy-announces-first-of-its-kind-collaboration-to-accelerate-vehicle-to-everything-technologies
3:37:06 PM: 	/article/[slug]: /en/article/driving-the-future-toward-vehicle-to-x-v2x-fermata-energy-expands-its-team
3:37:06 PM: 	/article/[slug]: /en/article/during-extreme-heat-denver-company-uses-electric-cars-to-help-cool-its-building
3:37:06 PM: 	/article/[slug]: /en/article/each-ev-with-v2g-charger-might-earn-15k-over-10-years
3:37:06 PM: 	/article/[slug]: /en/article/electric-vehicle-generates-revenue-and-energy-savings
3:37:06 PM: 	/article/[slug]: /en/article/energyhub-and-fermata-energy-partner-to-enable-utilities-to-accelerate-evs-as-grid-edge-resources
3:37:06 PM: 	/article/[slug]: /en/article/ev-lower-electric-bill-ecowatch
3:37:06 PM: 	/article/[slug]: /en/article/fermata-energy-expands-its-leadership-team-adding-jack-pfeiffer-as-data-scientist
3:37:06 PM: 	/article/[slug]: /en/article/fermata-energy-leadership-team-grows-in-tandem-with-interest-in-ev-charging-infrastructure
3:37:06 PM: 	/article/[slug]: /en/article/fermata-energy-pushes-the-envelope-to-make-vehicle-to-everything-v2x-technology-mainstream-in-electric-vehicles
3:37:06 PM: 	/article/[slug]: /en/article/fermata-energy-raises-40m-in-2021-including-a-series
3:37:06 PM: 	/article/[slug]: /en/article/fermata-energy-receives-first-ul-certification-for-vehicle-to-grid-electric
3:37:06 PM: 	/article/[slug]: /en/article/fermata-energy-selected-for-googles-startups-accelerator-for-climate-change
3:37:06 PM: 	/article/[slug]: /en/article/fermata-energy-strategic-investment-tepcoventures
3:37:06 PM: 	/article/[slug]: /en/article/fermata-energy-ul-certification-press-coverage
3:37:06 PM: 	/article/[slug]: /en/article/fermata-energys-newest-v2x-bidirectional-charger-
3:37:06 PM: 	/article/[slug]: /en/article/fermata-energys-vehicle-to-everything-v2x-technology
3:37:06 PM: 	/article/[slug]: /en/article/firstlight-power-fermata-energy-and-skyview-ventures
3:37:06 PM: 	/article/[slug]: /en/article/ford-and-newlab-announce-startups-to-pilot-new-electric-vehicle-tech-in-mobility-innovation-program
3:37:06 PM: 	/article/[slug]: /en/article/gmp-saves-money-for-customers-with-v2g
3:37:06 PM: 	/article/[slug]: /en/article/government-labor-industry-leaders-to-announce-first
3:37:06 PM: 	/article/[slug]: /en/article/governor-whitmer-announces-grants-to-bolster-mobility-industry-and-increase-accessibility-in-the-state
3:37:06 PM: 	/article/[slug]: /en/article/green-car-congress-nissan-approves-first-bi-directional-charger-for-use-with-nissan-leaf-in-the-us-fermata-energy-fe-15-charger
3:37:06 PM: 	/article/[slug]: /en/article/green-proving-ground-program-selects-innovative-technologies-that-enable-transition-to-net-zero-carbon
3:37:06 PM: 	/article/[slug]: /en/article/heliox-and-fermata-energy-forge-vehicle-to-everything-v2x-smart-energy-management-partnership
3:37:06 PM: 	/article/[slug]: /en/article/how-v2g-can-support-the-grid-auto-futures
3:37:06 PM: 	/article/[slug]: /en/article/marty-weiner-joins-fermata-energys-advisory-board
3:37:06 PM: 	/article/[slug]: /en/article/meet-the-14-entrepreneurs-vying-to-break-into-the-207.5-billion-electric-car-charging-industry-as-evs-finally-take-off
3:37:06 PM: 	/article/[slug]: /en/article/new-partnership-combines-electric-carsharing-with-vehicle-to-grid-technology
3:37:06 PM: 	/article/[slug]: /en/article/nissan-approves-fermata-energys-bidirectional-charger-as-first-for-use-with-nissan-leaf-in-the-us
3:37:06 PM: 	/article/[slug]: /en/article/nissan-release-nissan-approves-first-bi-directional
3:37:06 PM: 	/article/[slug]: /en/article/nissan-taps-fermata-energy
3:37:06 PM: 	/article/[slug]: /en/article/phoenix-motorcars--fermata-energy-form-long-term-partnership-for-v2x-bidirectional-charging
3:37:06 PM: 	/article/[slug]: /en/article/proven-results-and-cost-savings-with-v2g-technology
3:37:06 PM: 	/article/[slug]: /en/article/proving-the-concept-roanoke-electric-tests-innovative-ev-to-grid-charger
3:37:06 PM: 	/article/[slug]: /en/article/revel-fermata-energy-ninedot-energy-launch-first-v2g-system-on-nycs-grid
3:37:06 PM: 	/article/[slug]: /en/article/revel-ninedot-energy-and-fermata-energy-announce-groundbreaking
3:37:06 PM: 	/article/[slug]: /en/article/roanoke-electric-leading-the-way-in-savings-with-proven-ev-technology
3:37:06 PM: 	/article/[slug]: /en/article/solar-power-world-what-is-bidirectional-ev-charging
3:37:06 PM: 	/article/[slug]: /en/article/this-new-england-utility-will-soon-pay-ev-owners-to-help-to-back-up-the-grid
3:37:06 PM: 	/article/[slug]: /en/article/this-summer-an-electric-car-will-help-power-the-new-england-electric-grid
3:37:06 PM: 	/article/[slug]: /en/article/v2g-value-proposition-fermata-energy-chargedsolutions
3:37:06 PM: 	/article/[slug]: /en/article/vehicle-grid-integration-unlocking-ev-value
3:37:06 PM: 	/article/[slug]: /en/article/vehicle-to-building-pilot-installed-by-fermata-energy-at-north-boulder-recreation-center
3:37:06 PM: 	/article/[slug]: /en/article/vehicle-to-building-v2b-technology-coming-to-downtown-denver
3:37:06 PM: 	/article/[slug]: /en/article/vehicle-to-everything-v2x-installation-nets-positive-energy-results-for-a-historic-building-in-denver-and-cost-savings-to-the-nonprofit-that-installed-it
3:37:06 PM: 	/article/[slug]: /en/article/vehicle-to-grid-programs-give-rise-to-mobile-microgrids
3:37:06 PM: 	/article/[slug]: /en/article/vehicle-to-grid-technology-saves-950-in-4-months
3:37:06 PM: 	/article/[slug]: /en/article/verizon-and-newlab-incubate-7-startups-to-leverage-5g-networks
3:37:06 PM: 	/article/[slug]: /en/article/verizon-ventures-invests-in-fermata-energy-to-support
3:37:06 PM: 	/article/[slug]: /en/article/virtual-peaker-partners-with-fermata-energy-to-bring-v2g-bidirectional-vehicle-charging-technology-to-utilities
3:37:06 PM: 	/article/[slug]: /en/article/why-electric-vehicles-battery-storage-and-demand
3:37:06 PM: 	/contact: /en/contact
3:37:06 PM:     at /opt/build/repo/node_modules/next/dist/export/index.js:408:19
3:37:06 PM:     at runMicrotasks (<anonymous>)
3:37:06 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
3:37:06 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
3:37:06 PM:     at async /opt/build/repo/node_modules/next/dist/build/index.js:1342:21
3:37:06 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
3:37:06 PM:     at async /opt/build/repo/node_modules/next/dist/build/index.js:1202:17
3:37:06 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
3:37:06 PM:     at async Object.build [as default] (/opt/build/repo/node_modules/next/dist/build/index.js:65:29)
3:37:06 PM: error Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
3:37:06 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
3:37:06 PM: ​
3:37:06 PM: "build.command" failed                                        
3:37:06 PM: ────────────────────────────────────────────────────────────────
3:37:06 PM: ​
3:37:06 PM:   Error message
3:37:06 PM:   Command failed with exit code 1: yarn build (https://ntl.fyi/exit-code-1)
3:37:06 PM: ​
3:37:06 PM:   Error location
3:37:06 PM:   In Build command from Netlify app:
3:37:06 PM:   yarn build
3:37:06 PM: ​
3:37:06 PM:   Resolved config
3:37:06 PM:   build:
3:37:06 PM:     command: yarn build
3:37:06 PM:     commandOrigin: ui
3:37:06 PM:     environment:
3:37:06 PM:       - NETLIFY_NEXT_PLUGIN_SKIP
3:37:06 PM:       - NEXT_PUBLIC_APPKEY
3:37:06 PM:       - NEXT_PUBLIC_BASE_URL
3:37:06 PM:       - REVIEW_ID
3:37:06 PM:     publish: /opt/build/repo/.next
3:37:06 PM:     publishOrigin: ui
3:37:06 PM:   plugins:
3:37:06 PM:     - inputs: {}
3:37:06 PM:       origin: ui
3:37:06 PM:       package: '@netlify/plugin-nextjs'
3:37:06 PM: Caching artifacts
3:37:06 PM: Started saving node modules
3:37:06 PM: Finished saving node modules
3:37:06 PM: Started saving build plugins
3:37:06 PM: Finished saving build plugins
3:37:06 PM: Started saving corepack cache
3:37:06 PM: Finished saving corepack cache
3:37:06 PM: Started saving yarn cache
3:37:11 PM: Finished saving yarn cache
3:37:11 PM: Started saving pip cache
3:37:12 PM: Finished saving pip cache
3:37:12 PM: Started saving emacs cask dependencies
3:37:12 PM: Finished saving emacs cask dependencies
3:37:12 PM: Started saving maven dependencies
3:37:12 PM: Finished saving maven dependencies
3:37:12 PM: Started saving boot dependencies
3:37:12 PM: Finished saving boot dependencies
3:37:12 PM: Started saving rust rustup cache
3:37:12 PM: Finished saving rust rustup cache
3:37:12 PM: Started saving go dependencies
3:37:12 PM: Finished saving go dependencies
3:37:12 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:37:12 PM: Failing build: Failed to build site
3:37:13 PM: Finished processing build request in 1m34.274s

Hi! I had some weird build errors in one of my projects, and the reason was that Netlify uses Node v16 by default. You may try to specify a newer version by setting an environment variable or using .node-version / .nvmrc file - An article about how to do that
Try picking the same node version as on your local machine

thanks for reaching out, but I’ve tried that and it’s not it! I have the same version running!

:frowning:

@helrabelo Your issue doesn’t show any signs of being node version related, but rather that you’re using a prismic.io package that connects to their API, and when doing so it’s receiving an invalid response.

You should ensure that it’s being provided the right connection details (e.g. you may have some private API keys locally, but not set on Netlify), and failing that you could request help from Prismic’s community here:

2 Likes