Skip to content

feature: add ESM and debug mode#162

Open
nicolasiscoding wants to merge 3 commits into
privateOmega:developfrom
nicolasiscoding:feature/debugmode
Open

feature: add ESM and debug mode#162
nicolasiscoding wants to merge 3 commits into
privateOmega:developfrom
nicolasiscoding:feature/debugmode

Conversation

@nicolasiscoding

Copy link
Copy Markdown
Contributor

No description provided.

@zedtux

zedtux commented Nov 16, 2022

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

@zedtux were you able to figure it out?

@zedtux

zedtux commented Feb 5, 2023

Copy link
Copy Markdown
Contributor

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.

@milahu milahu mentioned this pull request Oct 13, 2023
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

Successfully merging this pull request may close these issues.

2 participants