Describe the bug
Not able to import anything from "docx-preview", it gives error "This dependency was not found: docx-preview".
I tried to add "main": "./dist/docx-preview.js" line in package.json inside node_module then it gives below error,
Module parse failed: Unexpected token (99:58)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }
| function hasXmlParserError(doc) {
> return doc.getElementsByTagName("parsererror")[0]?.textContent;
| }
| function removeUTF8BOM(data) {
Describe the bug Not able to import anything from "docx-preview", it gives error "This dependency was not found: docx-preview".
I tried to add "main": "./dist/docx-preview.js" line in package.json inside node_module then it gives below error,