string-replace-loader required to build, but not listed in dependencies
See original GitHub issueIn 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:
- Created 6 years ago
- Comments:19 (7 by maintainers)
Top 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 >
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

Just verified that everything is working with 2.24.1. Thanks!
yes should be remove… I’m also removing the dependency on module-css.