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.

Cannot find module '../images/url-rewriter'

See original GitHub issue

So 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:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chetoncommented, Jul 5, 2017

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.

0reactions
GXGOWcommented, Jul 6, 2017

Yup, it’s working now. Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Importing images in TypeScript React - "Cannot find module"
This file classes all types of image files and many more as modules that can be imported. inside the file there should be...
Read more >
HTTP Error 500.50 - URL Rewrite Module Error. - MSDN
This structure works well, and I am able to request pages, however on these pages I have images inserted using the url image...
Read more >
[2010-12-15] IIS file uploads give "URL Rewrite Module Error"
The cause I can see is newly uploaded files are missing the IIS_IUSRS group. This essentially means the file wasn't created inside the...
Read more >
Microsoft URL Rewrite Module and Images - CodeProject
I'm using Microsoft URL Rewrite Module and have a problem 1- I need for rewriting to ignore images and css and all other...
Read more >
10 URL Rewriting Tips and Tricks - RuslanY Blog
This post describes some of the tips and tricks that one may find ... With URL Rewrite Module, it is very easy to...
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