webpack-svgstore-plugin icon indicating copy to clipboard operation
webpack-svgstore-plugin copied to clipboard

init is always null in __svg__ variable declaration

Open maqduni opened this issue 7 years ago • 1 comments

Somehow svg doesn't get assigned evaluated expression values. createTaskContext fails on

expr.init.properties.forEach(function (prop) {
      switch (prop.key.name) {
        case 'name':
          data.fileName = prop.value.value;
          break;
        case 'path':
          data.path = prop.value.value;
          break;
        default:
          break;
      }
    });

Am I doing something wrong, or it's just an error?

maqduni avatar Jun 10 '17 05:06 maqduni

Me too...

image

image

This error occurs when I use webpack-svgstore-plugin and istanbul-instrumenter-loader . Now I can only exclude svgstore.config.js

DavidKk avatar Oct 09 '17 08:10 DavidKk