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.

Webpack v5: Plugin throws errors in v3.6.0

See original GitHub issue

The #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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
cascornelissencommented, Oct 30, 2020

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. ✌🏼

1reaction
markgazecommented, Oct 30, 2020

Awesome, that’s indeed a format that appears to be broken. Fix coming right up ✌️

Legend! Thanks 😄

Read more comments on GitHub >

github_iconTop 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 >

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