Closed maltheism closed 5 years ago
Thanks for the report, I’ll look into this later today. Are you able to debug it a little by placing some console.log
s in node_modules/svg-spritemap-webpack-plugin/lib/options-formatter.js
?
Thank you @cascornelissen for the help.
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object.
That points me to failing on line 19 pattern = path.normalize(pattern);
because pattern is an array of strings (multiple paths ex: 'public/images/app/icons/app/.svg', 'public/images/app/icons/other/.svg', ...) and not a singular string.
Everything succeeds when I comment out line 19
Ah, that seems obvious and so stupid I missed that (and no tests failed), will fix ASAP.
@maltheism, I've just pushed a fix to master. Could you check if that works for you?
npm install cascornelissen/svg-spritemap-webpack-plugin#master
@cascornelissen, the fix works! :)
@maltheism, a fix for this bug has been released in version 3.3.3
🚀
Hi, svg-spritemap-webpack-plugin version 3.3.2 isn't working for me compared to the older version. I've tried without path.resolve and same error as well.
My configurations:
Output of npm run compile: