question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Navbar lable issue

See original GitHub issue

Need some help with navbar configuration. Currently, I am using the below config for the navbar. In local env, I can see navbar labels. But when I deploy app labels are not displaying. I am not sure what’s wrong.

   navbar: {
      hideOnScroll: false,
      title: 'UI-Kit',
      logo: {
        alt: 'UI Kit Logo',
        src: 'img/logo.svg',
        href: 'https://ui-webkit.netlify.app/', 
        target: '_self',
      },
      items: [
        {
          to: '/docs',
          activeBasePath: 'docs',
          label: 'Docs',
          position: 'left',
        },
        {to: '/blog', label: 'Blog', position: 'left'},
        {to: '/Versions', label: 'All versions', position: 'right'},
        {
          href: 'https://github.com/krishnaUIDev/UI-Kit',
          position: 'right',
          className: 'header-github-link',
          'aria-label': 'GitHub Repository',
        },
      ],
    },

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
slorbercommented, Jul 29, 2020

@krishnaUIDev , the navbar.items was previously navbar.links and renamed in alpha 59.

If you are not seeing navbar items, it’s because you are not in alpha 59, and you are trying to use navbar.items while the renaming didn’t happen yet 🤪

Also, you have both a yarn.lock and a package-lock. It is likely that you have differences between local dev and netlify because you use npm locally, and netlify uses yarn.

At some point you have to choose between npm or yarn.

Also, you have versions that do not match here, while they should (use alpha 60, just released for example)

    "@docusaurus/core": "^2.0.0-alpha.58",
    "@docusaurus/plugin-ideal-image": "^2.0.0-alpha.39",
    "@docusaurus/preset-classic": "^2.0.0-alpha.58",
    "@docusaurus/theme-search-algolia": "^2.0.0-alpha.32",

What I’d do:

  • update everything to alpha 60
  • delete both yarn.lock and package-lock
  • decide to use yarn only (add package-lock.json to gitignore)
  • yarn install, add new generated yarn.lock to repo
  • local and netlify should now both use yarn with alpha 60
1reaction
krishnaUIDevcommented, Jul 29, 2020

@slorber thanks. Its working as expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Correct layout for Bootstrap label in navbar - Stack Overflow
Correct layout for Bootstrap label in navbar · I think you have to style it, remove margin from label and see if that...
Read more >
Unexpected rendering with .navbar-text · Issue #8815 - GitHub
It appears that an element with class .navbar-text stacks above any following elements, including other elements of the same class. The behavior ...
Read more >
The problem with multiple nav elements (and the simple ...
When we have multiple nav elements on a given page, it's important that we use aria- label to label them... most of the...
Read more >
Navbar - Bootstrap
Documentation and examples for Bootstrap's powerful, responsive navigation header, the navbar. Includes support for branding, navigation, and more, ...
Read more >
Labels go over navbar when scrolling - WordPress.org
Hi,. I installed your plugin to test it, and I got an issue with the label on my products. When I scroll, labels...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found