Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

107
Vistas
Basic react build (CRA) is missing a closing on link tag

Hello I just made a project with npx create-react-app test-ts --template typescript and when I build it I have this code in the html :

<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.2e6c92fb.js"></script><link href="/static/css/main.073c9b0a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

We can see that this tag : <link href="/static/css/main.073c9b0a.css" rel="stylesheet"> doesn't have a closing slash or a closing tag.

When I try to parse this code this DOMParser it yield me an error for that.

My CRA version is 5.0.1

7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos