Svg-sprite-loader: Not compatible with Wepack 4

Created on 21 Feb 2018  路  3Comments  路  Source: JetBrains/svg-sprite-loader

This plugin doesn't seem to work with Webpack 4.0.0-beta.2 at the moment. I get the following error:

Module build failed: TypeError: Cannot read property 'target' of undefined
    at configurator (/Users/denis/Dropbox/Workspace/yumory/web/node_modules/svg-sprite-loader/lib/configurator.js:18:34)
    at Object.loader (/Users/denis/Dropbox/Workspace/yumory/web/node_modules/svg-sprite-loader/lib/loader.js:37:18)
 @ ./src/common/NavBar.js 27:16-50
 @ ./src/recipes/RecipeDetailsPage.js
 @ ./src/App.js
 @ ./src/index.js
 @ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./src

This might be caused by one of the breaking changes for plugin authors described here:

https://github.com/webpack/webpack/releases/tag/v4.0.0-beta.0

Most helpful comment

Have the same problem, just voted for it. Only want to know, is there a workaround for this? Except from downgrade Webpack :D

All 3 comments

@kisenka See official migration guide for loader developers https://medium.com/webpack/webpack-4-migration-guide-for-plugins-loaders-20a79b927202

Have the same problem, just voted for it. Only want to know, is there a workaround for this? Except from downgrade Webpack :D

Started work in #247. @phun-ky has continued this on in #249.

Hopefully will land soon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sqal picture sqal  路  4Comments

whois42 picture whois42  路  5Comments

evgenyrodionov picture evgenyrodionov  路  4Comments

alxpsr picture alxpsr  路  4Comments

timkelty picture timkelty  路  7Comments