privateOmega / html-to-docx

HTML to DOCX converter
MIT License
375 stars 141 forks source link

feature: add ESM and debug mode #162

Open nicolasiscoding opened 1 year ago

zedtux commented 1 year ago

I just gave a try to your branch but I have the following error from the webpack output :

Module not found: Error: Can't resolve 'html-to-docx' in ...
resolve 'html-to-docx' in ...
  Parsed request is a module
  ...

I have installed your fork using yarn add https://github.com/nicolasiscoding/html-to-docx.git\#feature/debugmode and then restarted webpack.

Here is how I import it :

import HTMLtoDOCX from 'html-to-docx'

After other tries I realised that using yarn add <git URL> doesn't bring all the files, and therefore couldn't work, don't know why, so the above error shouldn't be related to your work.

nicolasiscoding commented 1 year ago

@zedtux were you able to figure it out?

zedtux commented 1 year ago

Well, yes, as I said, the yarn add command didn't come with all the files, I don't know why.

All in all, I'm ending up using the patch-package package to patch this lib. I can't help you more, I'm afraid, sorry.