question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not compatible with Webpack 4

See original GitHub issue

The following error occurs when trying to use this plugin with Webpack 4.

/my/project/path/node_modules/svg-spritemap-webpack-plugin/svg-spritemap.js:62
            sourceChunk.files.push(filename);
                        ^

TypeError: Cannot read property 'files' of undefined
    at additionalChunkAssets (/my/project/path/node_modules/svg-spritemap-webpack-plugin/svg-spritemap.js:62:25)
    at SyncHook.eval [as call] (eval at create (/my/project/path/node_modules/tapable/lib/HookCodeFactory.js:17:12), <anonymous>:7:1)
    at SyncHook.lazyCompileHook [as _call] (/my/project/path/node_modules/tapable/lib/Hook.js:35:21)
    at hooks.optimizeTree.callAsync.err (/my/project/path/node_modules/webpack/lib/Compilation.js:935:37)
    at _err0 (eval at create (/my/project/path/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:11:1)
    at _async2.default.forEach.err (/my/project/path/node_modules/extract-text-webpack-plugin/dist/index.js:281:11)
    at /my/project/path/node_modules/async/dist/async.js:473:16
    at iteratorCallback (/my/project/path/node_modules/async/dist/async.js:1050:13)
    at /my/project/path/node_modules/async/dist/async.js:958:16
    at _async2.default.forEach.err (/my/project/path/node_modules/extract-text-webpack-plugin/dist/index.js:259:13)
    at /my/project/path/node_modules/async/dist/async.js:473:16
    at iteratorCallback (/my/project/path/node_modules/async/dist/async.js:1050:13)
    at /my/project/path/node_modules/async/dist/async.js:958:16
    at compilation.rebuildModule.err (/my/project/path/node_modules/extract-text-webpack-plugin/dist/index.js:246:26)
    at callback (/my/project/path/node_modules/webpack/lib/Compilation.js:775:35)
    at processModuleDependencies.err (/my/project/path/node_modules/webpack/lib/Compilation.js:797:5)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
cascornelissencommented, Feb 26, 2018

Yeah, I’m aware of this and currently working on 2.0.0 of this plugin which should be compatible with Webpack 4.0.0 and higher. I’m hoping to release it this week, let’s keep the issue open to prevent others from reporting the same.

1reaction
cascornelissencommented, Mar 12, 2018

The stable release will be postponed until I’ve solved https://github.com/cascornelissen/svg-spritemap-webpack-plugin/issues/23 in case anyone was wondering ❤️

Read more comments on GitHub >

github_iconTop Results From Across the Web

To v5 from v4 - webpack
Test webpack 5 compatibility ... Try to set the following options in your webpack 4 configuration and check if build still works correctly....
Read more >
The library is not compatible with webpack #741 - GitHub
I confirm that it's a pain to package a lambda with google apis for node. My process was this: package with all node_modules,...
Read more >
Upgrading Webpack 4 → 5 | Square Corner Blog
However, it only supported up to Webpack 4 and the project had been deprecated with no alternative recommendations.
Read more >
TsconfigPathsPlugin type not compatible with webpack 5
Type 'TsconfigPathsPlugin' is not assignable to type 'ResolvePluginInstance'. Types of property 'apply' are incompatible.
Read more >
Webpack 4 | Mobify DevCenter
You will need to upgrade any webpack plug-ins used on your project, as webpack 4 introduced breaking changes to the plug-in API. Most...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found