Cannot find module '../images/url-rewriter'
See original GitHub issueSo I’ve recently started using this module in my project, but no matter what I tried, I can’t get it to work. I keep stumbling upon the same error when I try to execute browserify -t browserify-css css.js -o build/bundle.js
, it’s throwing the same error
Error: Cannot find module '../images/url-rewriter' at Function.Module._resolveFilename (module.js:485:15) at Function.Module._load (module.js:437:25) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object.<anonymous> (/mnt/d/OneDrive/Documents/PhpstormProjects/E-portfolio/node_modules/browserify-css/node_modules/clean-css/lib/imports/inliner.js:7:19) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3)
It seems to be a problem with the clean-css module, which is included in this plugin. I checked its node_modules folder and the module is indeed missing. I already removed the whole node_modules folder and reinstalled all modules, but no luck there unfortunately.
Any idea on how to work around this?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Looks like it’s fixed since clean-css@3.3 https://github.com/jakubpawlowicz/clean-css/issues/929
I will provide a new release containing updates to the dependencies.
Yup, it’s working now. Thanks for your help!