Webpack v5: Plugin throws errors in v3.6.0
See original GitHub issueThe #webpack5
version fixed my issues but since switching to v3.6.0, I get this:
node_modules/svg-spritemap-webpack-plugin/svg4everybody-helper.js 30 bytes [built] [code generated]
node_modules/svg4everybody/dist/svg4everybody.js 6.03 KiB [built] [code generated]
spritemap-dummy-module 1 bytes [code generated]
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
ERROR in requestWithoutMatchResource.charCodeAt is not a function
webpack 5.3.0 compiled with 21 errors in 1522 ms
Config
Here’s the section of the plugins
array related to this package:
new SVGSpritemapPlugin('src/img/svg/*.svg', {
output: {
filename: '../../src/img/sprite.svg',
svg4everybody: true,
svgo: true
},
sprite: {
generate: {
title: false
},
prefix: false
}
})
I’ve tried to change a few things to see if there was anything else causing it (as I’ve bumped a few other dependencies at the same time) but it seems like the update to v3.6.0 is the cause. Let me know if I can help you out with debugging this and I’ll see what I can do.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Error when using with webpack 5 · Issue #514 - GitHub
Is an error being thrown? Webpack Bundle Error :::: TypeError: Cannot read property 'tap' of undefined at Object.exports.tap ...
Read more >Webpack 5 and Storybook 6 integration throws an error in ...
Basically the error is coming from the marked line in /node_modules/webpack/lib/DefinePlugin.js once running for the first time npm run ...
Read more >TerserWebpackPlugin | webpack
Webpack v5 comes with the latest terser-webpack-plugin out of the box. ... number of CPUs to avoid Error: Call retries were exceeded (see...
Read more >Troubleshooting Common Errors - Gatsby
Installing plugins for styling results in Generating SSR bundle failed. If you encounter a webpack error that says Generating SSR bundle failed after...
Read more >Migration Guide | Cypress Documentation
The .should() assertion now throws an error if Cypress commands are ... Support for the plugins file has been removed, and it has...
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 Free
Top 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
Well, thanks for your help! It prevents a lot of stress and hassle if people test out a release before stamping the stable/latest label on it. ✌🏼
Legend! Thanks 😄