JetBrains / svg-sprite-loader

Webpack loader for creating SVG sprites.
MIT License
2.01k stars 271 forks source link

Missing `pascal-case` dependency at run-time #336

Open mseeley opened 5 years ago

mseeley commented 5 years ago

Do you want to request a feature, report a bug or ask a question?

Report a bug.

What is the current behavior?

When using 4.1.3 and Webpack 4.28.4 I run into the following error on all of our SVG imports:

ERROR in ./app/cast/chromecast/glyphs/player-shuffle-560.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
InvalidRuntimeException: svg-sprite-loader exception. Cannot find module 'pascal-case'
    at Object.loader (/Users/mattwork/Development/plex-web-client/node_modules/svg-sprite-loader/lib/loader.js:67:11)

What is the expected behavior?

Looking into your package.json I can see pascal-case is listed within devDependencies. Instead, pascal-case should be part of your dependencies block since it's used at run-time.

Manually adding pascal-case into my own package.json file works around the problem.

Thanks!

Please tell us about your environment:

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

n/a