Navbar dropdown items causes TypeError
Tacktician opened this issue ยท 0 comments
Tacktician commented
๐ 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
- Pull down latest build:
git clone git@github.com:saucelabs/sauce-docs.git
- Run
yarn install
- Uncomment the following in
docusaurus.config.js
undernavbar > items
:
label: 'Resources',
position: 'right',
items: [
// {
// label: 'Sauce Labs Blog',
// href: 'https://saucelabs.com/blog',
// },
...
]
- Run
yarn start
- 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:
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 โ๏ธ