svg-sprite-loader icon indicating copy to clipboard operation
svg-sprite-loader copied to clipboard

Missing `pascal-case` dependency at run-time

Open mseeley opened this issue 6 years ago • 0 comments

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:

  • Node.js version: 10.14.1
  • webpack version: 4.29.4
  • svg-sprite-loader version: 4.1.3
  • OS type & version: macOS 10.14.1

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

mseeley avatar Jan 16 '19 22:01 mseeley