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.

string-replace-loader required to build, but not listed in dependencies

See original GitHub issue

In a downstream project that builds against vtk-js, I’m seeing the following error:

ERROR in ./plugins/vtk_viewer/web_client/views/SurfaceView.js
Module not found: Error: Can't resolve 'string-replace-loader' in '/Users/zach/dev/girder'

It looks like string-replace-loader is supposed to be brought in transitively via kw-web-suite, however kw-web-suite is only listed in the devDependencies, not the dependencies.

Things required for build time should be listed in dependencies; devDependencies is for things that are required for development of vtk-js itself.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
zachmullencommented, May 23, 2017

Just verified that everything is working with 2.24.1. Thanks!

1reaction
jourdaincommented, May 23, 2017

yes should be remove… I’m also removing the dependency on module-css.

Read more comments on GitHub >

github_iconTop Results From Across the Web

string replace loader not working with webpack 3
What do I need to do to ensure this loader works in webpack 3. There are no errors but string is not getting...
Read more >
Problems with pnpm and the way loaders are resolved #5087
I have Module not found: Error: Can't resolve 'ts-loader' when loader was already installed as a dependency for cli-plugin-typescript.
Read more >
string-replace-loader - npm
Start using string-replace-loader in your project by running `npm i string-replace-loader`. There are 210 other projects in the npm registry ...
Read more >
Writing a Loader - webpack
The css-loader is a good example of the first approach. It transforms dependencies to require s, by replacing @import statements with a require...
Read more >
module-string-replace-loader - npm package - Snyk
a webpack loader for replace string in import | require For more information about how to use this package see README.
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