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

773
Visualizações
I am getting this error : "The requested resource isn't a valid image for /images/crown.png received text/html; charset=utf-8"

I am using Next.js and I got this error.This is the code:

import React from "react";
import { Container, Col, Row } from "react-bootstrap";
import Image from "next/image";
export default function fs() {
  return (
    <div>
      <Container>
        <Row>
          <Col lg="4" md="4">
            <Row>test</Row>
            <Row>test</Row>
            <Row>test</Row>
          </Col>
          <Col lg="4" md="4">
            <Image width="100%" height="50" src="/images/crown.png" />
          </Col>
          <Col lg="4" md="4">
          </Col>
        </Row>
      </Container>
    </div>
  );
}

and after reviewing the code many times I've found that the images folder can't exist in the 'styles' folder , it should be in the 'public' folder (apparently this is how Next.js architecture works !).

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

0

according to Next.js architecture, there should be a folder called 'public'.You should put the images used in the app there, and not in any other folder like 'styles'.

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