I just upgraded my project to Angular 13. Upgraded also ngx-export-as to 1.13.0 to be compatible.
Compilation fails:
./node_modules/xmlbuilder2/lib/builder/dom.js:5:15-30 - Error: Module not found: Error: Can't resolve 'util' in '/home/francois/Sources/ClimatePositive/soaas/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 }
The xmlbuilder2 dependency is coming from html-to-docx:
I just upgraded my project to Angular 13. Upgraded also ngx-export-as to 1.13.0 to be compatible.
Compilation fails:
The xmlbuilder2 dependency is coming from html-to-docx: