-
Hi! I'm trying to use this library with React, but I keep getting this 'HTMLtoDOCX is not a function' error. I've already tried the following alternatives for importing the library:
How can I properly import the library in my project using npm? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
LSantos06
Sep 15, 2021
Replies: 1 comment 1 reply
-
@LSantos06 Which version of html-to-docx are you trying with? Also could you please post additional details like React Version, Loader you are using etc? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@privateOmega Actually I've successfully imported the library with
const HTMLtoDOCX = require('../dist/html-to-docx.umd');
, just like it's illustrated in the examples folder.