[ERROR] Error: "title" is required

I’m utilizing Netlify to push static github repo website and getting the following "[ERROR] Error: “title” is required. I’m using a template site docusaurus V2 ( GitHub - facebook/docusaurus: Easy to maintain open source documentation websites. ) looking around I don’t see anyone else getting this weird error. Please see below log.

Thanks!

────────────────────────────────────────────────────────────────
4:55:55 PM:   Netlify Build                                                 
4:55:55 PM: ────────────────────────────────────────────────────────────────
4:55:55 PM: ​
4:55:55 PM: ❯ Version
4:55:55 PM:   @netlify/build 27.1.1
4:55:55 PM: ​
4:55:55 PM: ❯ Flags
4:55:55 PM:   baseRelDir: true
4:55:55 PM:   buildId: 6285791527c8d7131ed55f3f
4:55:55 PM:   deployId: 6285791527c8d7131ed55f41
4:55:55 PM: ​
4:55:55 PM: ❯ Current directory
4:55:55 PM:   /opt/build/repo
4:55:55 PM: ​
4:55:55 PM: ❯ Config file
4:55:55 PM:   No config file was defined: using default values.
4:55:55 PM: ​
4:55:55 PM: ❯ Context
4:55:55 PM:   production
4:55:55 PM: ​
4:55:55 PM: ────────────────────────────────────────────────────────────────
4:55:55 PM:   1. Build command from Netlify app                             
4:55:55 PM: ────────────────────────────────────────────────────────────────
4:55:55 PM: ​
4:55:55 PM: $ npm run build
4:55:55 PM: > site@0.0.0 build
4:55:55 PM: > docusaurus build
4:55:57 PM: [ERROR] Error: "title" is required
4:55:57 PM: 
4:55:57 PM:     at validateConfig (/opt/build/repo/node_modules/@docusaurus/core/lib/server/configValidation.js:201:15)
4:55:57 PM:     at loadSiteConfig (/opt/build/repo/node_modules/@docusaurus/core/lib/server/config.js:25:62)
4:55:57 PM:     at async loadContext (/opt/build/repo/node_modules/@docusaurus/core/lib/server/index.js:31:63)
4:55:57 PM:     at async build (/opt/build/repo/node_modules/@docusaurus/core/lib/commands/build.js:50:21)
4:55:57 PM: ​
4:55:57 PM: ────────────────────────────────────────────────────────────────
4:55:57 PM:   "build.command" failed                                        
4:55:57 PM: ────────────────────────────────────────────────────────────────
4:55:57 PM: ​
4:55:57 PM:   Error message
4:55:57 PM:   Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
4:55:57 PM: ​
4:55:57 PM:   Error location
4:55:57 PM:   In Build command from Netlify app:
4:55:57 PM:   npm run build
4:55:57 PM: ​
4:55:57 PM:   Resolved config
4:55:57 PM:   build:
4:55:57 PM:     base: /opt/build/repo
4:55:57 PM:     command: npm run build
4:55:57 PM:     commandOrigin: ui
4:55:57 PM:     publish: /opt/build/repo/build
4:55:57 PM:     publishOrigin: ui
4:55:58 PM: Caching artifacts
4:55:58 PM: Started saving node modules
4:55:58 PM: Finished saving node modules
4:55:58 PM: Started saving build plugins
4:55:58 PM: Finished saving build plugins
4:55:58 PM: Started saving pip cache
4:55:58 PM: Finished saving pip cache
4:55:58 PM: Started saving emacs cask dependencies
4:55:58 PM: Finished saving emacs cask dependencies
4:55:58 PM: Started saving maven dependencies
4:55:58 PM: Finished saving maven dependencies
4:55:58 PM: Started saving boot dependencies
4:55:58 PM: Finished saving boot dependencies
4:55:58 PM: Started saving rust rustup cache
4:55:58 PM: Finished saving rust rustup cache
4:55:58 PM: Started saving go dependencies
4:55:58 PM: Finished saving go dependencies
4:55:59 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:55:59 PM: Creating deploy upload records
4:56:00 PM: Failing build: Failed to build site
4:56:00 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
4:56:00 PM: Finished processing build request in 56.73735424s

Hey @opposed.draws_0l

Do you have a title value in the docusaurus.config.js ? See example and documentation.

1 Like

I swear I read through the documentation 10x. You nailed it. Thank you build worked but now I’m facing a " Oops, page not found’ issue. BaseURL is set but I’ll dig around on that error now.

1 Like