saucelabs/sauce-docs

Navbar dropdown items causes TypeError

Tacktician opened this issue ยท 0 comments

๐Ÿ› Bug Report

In an attempt to add dropdown navbar items the site fails to build or render in the browser.

Have you read the Contributing Guidelines on issues?

To Reproduce

  1. Pull down latest build: git clone git@github.com:saucelabs/sauce-docs.git
  2. Run yarn install
  3. Uncomment the following in docusaurus.config.js under navbar > items:
label: 'Resources',
position: 'right',
items: [
  // {
  //   label: 'Sauce Labs Blog',
  //   href: 'https://saucelabs.com/blog',
  // },
...
]
  1. Run yarn start
  2. Check the browser

Expected behavior

I expected the Navbar items to contain a dropdown menu with items + links

Actual Behavior

Website fails to load, and after launching the server in debug mode, I receive the following errors:

Screen Shot 2020-11-17 at 12 00 52 PM

Screen Shot 2020-11-17 at 12 02 55 PM

Your Environment

  • Docusaurus version used: 2.0.0-alpha.66
  • Environment Name and Verson: (nodeJS v14.15.0, Chrome v86.0.4240.183, yarn v1.22.5)
  • Operating system and version used: MacOS 10.15.7 Desktop

Reproducible Demo

See Steps to reproduce โ˜๏ธ