Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'dom-serializer' #269

Closed
neemah opened this issue Dec 14, 2022 · 2 comments
Closed

Error: Cannot find module 'dom-serializer' #269

neemah opened this issue Dec 14, 2022 · 2 comments

Comments

@neemah
Copy link

neemah commented Dec 14, 2022

Observed output

Error: Cannot find module 'dom-serializer'
Require stack:
- /...../project/node_modules/html-to-text/lib/html-to-text.cjs

Expected output

No errors about dom-serializer

Version information

  • html-to-text: latest
  • node: 16

I did not find dom-serializer in package.json of html-to-text package, it seems this is the reason behind error. Added this librabry to our project solved and issue.

@KillyMXI
Copy link
Member

Hmm.
Weird that you got the error.
The dependency chain is html-to-text -> htmlparser2 -> domutils -> dom-serializer
So it must be present in node_modules.

But anyway, good point, looks like I've added it explicitly in html-to-md/package.json and forgot in html-to-text/package.json

Thanks

KillyMXI added a commit that referenced this issue Dec 14, 2022
@KillyMXI
Copy link
Member

Published version 9.0.3 with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants