Closed andrejs-uibo closed 3 years ago
This could be related to https://github.com/cascornelissen/svg-spritemap-webpack-plugin/issues/143
Probably need to exit early
if (typeof this.styles === 'undefined') {
return;
}
Had a quick look and I've made a similar change in 2b72654 which should also solve this. Would you mind trying to install the plugin from master
by using the following command and letting me know if this also solves the problem you're running into?
$ npm install cascornelissen/svg-spritemap-webpack-plugin#master
ping @andrejs-uibo
Sorry, have not had the time to check, but it seems like it should solve the issue.
There is an error if change the style option
error in ./node_modules/svg-spritemap-webpack-plugin/svg4everybody-helper.js
@Veron116, do you have any more information? Are you talking about the latest release on NPM or the master
branch?
This change was included in 3.9.0
🚀
When trying to build assets, I get this error:
Here is a part of webpack config how I use this plugin:
This is on webpack v5.16.0 Plugin v3.8.3