Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

757
Views
Recibo este error: "El recurso solicitado no es una imagen válida para /images/crown.png texto recibido/html; charset=utf-8"

Estoy usando Next.js y recibí este error. Este es el código:

 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> ); }

y después de revisar el código muchas veces, descubrí que la carpeta de imágenes no puede existir en la carpeta 'estilos', debería estar en la carpeta 'pública' (¡aparentemente así es como funciona la arquitectura Next.js!).

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

de acuerdo con la arquitectura de Next.js, debe haber una carpeta llamada 'pública'. Debe colocar las imágenes utilizadas en la aplicación allí, y no en ninguna otra carpeta como 'estilos'.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!