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

338
Vistas
Yarn cannot find module (html-to-text)

I ran yarn add html-to-text successfully. The package is in the package.json list. Now when I try to require the module as described in the manual, it says Error: Cannot find module html-to-text. The same repository is working on another laptop (Mac). I am using Windows, but I don't believe that should be the issue.

const { convert } = require('html-to-text');

Any ideas?

Edit

It looks like it is with other new modules too! Running yarn adds it to node_modules, but it says Module not found on import

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

I needed to run yarn docker --build and it worked.

about 4 years ago · Juan Pablo Isaza Denunciar

0

You can also use it

npm install html-to-text

And then use

const { convert } = require('html-to-text');

It might be helpful for you

about 4 years ago · Juan Pablo Isaza Denunciar
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