Closed lmoroz closed 1 year ago
Took a while cause I was quite busy but it seems like one of your input SVGs contains invalid XML.
This specifically seems to be caused by your plans.svg
which contains a data-plans-svg
attribute without a value on L1 which is invalid XML. Trying to open the file on my end in my browser (Mozilla Firefox) actually throws an XML parsing error too.
Description When trying to build the project I'm getting this:
(node:19636) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'trim' of undefined at …\node_modules\svg-spritemap-webpack-plugin\lib\generate-svg.js:161:26
Expected behavior To build normally, probably with warning about broken SVG-file
Actual behavior Build freezes on the error:
(node:19636) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:19636) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
System information
Minimal reproduction A minimal repository that reproduces the problem
Additional context Set of svg-files just contains SVG without
<path…