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

332
Visualizações
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 Respostas
Responde à pergunta

0

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

about 4 years ago · Juan Pablo Isaza Relatório

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 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