Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

205
Vistas
Html-to-react-components CLI : "Successfully generated 0 components" after adding data-components

My goal is simple : changing an index file to a React package for some integrations later on. Looking at different tools, the "easiest" one seems to be html-to-react-components, with its CLI commands.

After adding data-component="myDataComponent" to the element I want to convert, I typed the following command to create the React elements :

html2react <path-to-index.html>

But for some reason, this is the output : Successfully generated 0 components: Saved into "components" directory

After looking at the sample provided in the repo and swapping a few elements, it doesn't look like I did something wrong, appart from installing the module itself.

Ran both npm i html-to-react-components and npm i -g html-to-react-components but no constructive results.

Any Ideas on why does it not work the way it should ?

Edit : NPM Version : v6.4.11 Node version : v16.14.2

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda