Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Podem me ajudar?

Não estou entendo um erro, já fiz de tudo e sempre aparece a mesma coisa

<nav className="menu-cabecalho">
                <ul className="menu-itens">
                    <li><a href="#" className="menu-item menu-item--entrar">Entrar</a></li>
                    <li><a href="#" className="menu-item">Produtos</a></li>
                    <li><a href="/" className="menu-item">Blog</a></li>
                    <li><a href="/sobre" className="menu-item">Sobre</a></li>
                </ul>

Quando uso o ''npm start'' no terminal aparece

Line 21:15: The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md jsx-a11y/anchor-is-valid Line 22:15: The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md jsx-a11y/anchor-is-valid

Search for the keywords to learn more about each warning. To ignore, add // eslint-disable-next-line to the line before.

1 resposta
solução!

Fala João, tudo bem?

Você pode consertar isso, alterando de:

 <li><a href="#"></a></li>

Para:

 <li><a href="/#"></a></li>

Acrescentando / antes de #

Espero ter ajudado, bons estudos, e se o erro persistir é só falar pra gente :D

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software