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

Moduels not foun issue in html-to-docx #255

Open
ABIDULLAH786 opened this issue Nov 8, 2024 · 0 comments
Open

Moduels not foun issue in html-to-docx #255

ABIDULLAH786 opened this issue Nov 8, 2024 · 0 comments

Comments

@ABIDULLAH786
Copy link

i think this package is not maintained for a log time. there is a lot of error in code after installing this library here is the errors list

`
ERROR in ./node_modules/html-to-docx/dist/html-to-docx.esm.js 5:0-28
Module not found: Error: Can't resolve 'crypto' in 'D:\Work\react-starter-with-routes\node_modules\html-to-docx\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
- install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "crypto": false }
ERROR in ./node_modules/html-to-docx/dist/html-to-docx.esm.js 6:0-20
Module not found: Error: Can't resolve 'fs' in 'D:\Work\react-starter-with-routes\node_modules\html-to-docx\dist'
ERROR in ./node_modules/html-to-docx/dist/html-to-docx.esm.js 7:0-24
Module not found: Error: Can't resolve 'path' in 'D:\Work\react-starter-with-routes\node_modules\html-to-docx\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
- install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "path": false }
ERROR in ./node_modules/html-to-docx/dist/html-to-docx.esm.js 8:0-24
Module not found: Error: Can't resolve 'util' in 'D:\Work\react-starter-with-routes\node_modules\html-to-docx\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "util": false }
ERROR in ./node_modules/html-to-docx/dist/html-to-docx.esm.js 10:0-28
Module not found: Error: Can't resolve 'stream' in 'D:\Work\react-starter-with-routes\node_modules\html-to-docx\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
- install 'stream-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "stream": false }
ERROR in ./node_modules/html-to-docx/dist/html-to-docx.esm.js 11:0-24
Module not found: Error: Can't resolve 'http' in 'D:\Work\react-starter-with-routes\node_modules\html-to-docx\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "http": require.resolve("stream-http") }'
- install 'stream-http'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "http": false }
ERROR in ./node_modules/html-to-docx/dist/html-to-docx.esm.js 12:0-22
Module not found: Error: Can't resolve 'url' in 'D:\Work\react-starter-with-routes\node_modules\html-to-docx\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "url": require.resolve("url/") }'
- install 'url'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "url": false }
ERROR in ./node_modules/html-to-docx/dist/html-to-docx.esm.js 14:0-26
Module not found: Error: Can't resolve 'https' in 'D:\Work\react-starter-with-routes\node_modules\html-to-docx\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "https": require.resolve("https-browserify") }'
- install 'https-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "https": false }
ERROR in ./node_modules/html-to-docx/dist/html-to-docx.esm.js 15:0-24
Module not found: Error: Can't resolve 'zlib' in 'D:\Work\react-starter-with-routes\node_modules\html-to-docx\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
- install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "zlib": false }
ERROR in ./node_modules/html-to-vdom/node_modules/htmlparser2/lib/WritableStream.js 5:13-37
Module not found: Error: Can't resolve 'buffer' in 'D:\Work\react-starter-with-routes\node_modules\html-to-vdom\node_modules\htmlparser2\lib'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
- install 'buffer'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "buffer": false }
ERROR in ./node_modules/safe-buffer/index.js 3:13-30
Module not found: Error: Can't resolve 'buffer' in 'D:\Work\react-starter-with-routes\node_modules\safe-buffer'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
- install 'buffer'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "buffer": false }
ERROR in ./node_modules/xmlbuilder2/lib/builder/dom.js 8:15-30
Module not found: Error: Can't resolve 'util' in 'D:\Work\react-starter-with-routes\node_modules\xmlbuilder2\lib\builder'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "util": false }
ERROR in ./node_modules/xmlbuilder2/lib/index.js 11:15-30
Module not found: Error: Can't resolve 'util' in 'D:\Work\react-starter-with-routes\node_modules\xmlbuilder2\lib'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "util": false }
ERROR in ./node_modules/html-to-docx/dist/html-to-docx.esm.js
Cannot read properties of undefined (reading 'module')
`

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

1 participant