Not compatible with Webpack 4
See original GitHub issueThe 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:
- Created 6 years ago
- Comments:8 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, I’m aware of this and currently working on
2.0.0
of this plugin which should be compatible with Webpack4.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.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 ❤️