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
I needed to run yarn docker --build
and it worked.