Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

303
Visualizações
Error: Requested and resolved page mismatch: /../public/logo.svg /public/logo.svg

I keep getting this error after in terminal when importing logo; the logo is importing though not sure why. There isn't much support regarding this error online on here as well as on next js if anyone has come across this and can help much appreciated

<Image src={'/../public/logo.svg'} width={width} height={height} />;

It wont run without the / in the beginning.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

You are trying to ask for /../public/logo.svg which starts at the root, tries to go a level above the root, and then down to public/logo.svg.

Since the client isn't allowed to go above the root (and access arbitrary files on the server!), the ../ gets stripped out (with the security error you see) and the browser is given the resulting URL.

The SVG is displayed because after recovering from the error, the URL happened to point to the SVG.

To get rid of the error message, stop making the error. Remove ../ from the URL.

about 4 years ago · Juan Pablo Isaza Relatório

0

import icon from react component instead*

const Logo = ({ width, height }) => {
  return (
    <svg
    </svg>
  );
};

export default Logo;

import Logo into components

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda