New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requiring absolute paths on windows fails #66

Closed
jhnns opened this Issue Feb 13, 2013 · 8 comments

Comments

Projects
None yet
3 participants
@jhnns
Member

jhnns commented Feb 13, 2013

webpack 0.8.x can't find the module on windows if I required it like this:

require("c:/Users/jhnns/dev/test/b.js");

node does 馃槃

I haven't tested it with webpack 0.9.x.

@sokra

This comment has been minimized.

Member

sokra commented Feb 13, 2013

Can you try this? (with a big "C")

require("C:/Users/jhnns/dev/test/b.js");
@sokra

This comment has been minimized.

Member

sokra commented Feb 13, 2013

ok it's case insensitive but you have to use the correct slashes... on windows ""

require("c:\\Users\\jhnns\\dev\\test\\b.js");
@jhnns

This comment has been minimized.

Member

jhnns commented Feb 13, 2013

It works with backslashes. I just wanted to mention that node accepts these paths. 馃槃

sokra added a commit to webpack/enhanced-resolve that referenced this issue Feb 13, 2013

@sokra

This comment has been minimized.

Member

sokra commented Feb 13, 2013

ok I "fixed" it... but i think that a very rar case...

@sokra sokra closed this Feb 13, 2013

@jhnns

This comment has been minimized.

Member

jhnns commented Feb 13, 2013

Sry for bugging you. It's not important anyway.
Now my buggy code will probably work ... 馃槈

@sokra

This comment has been minimized.

Member

sokra commented Feb 13, 2013

but it's only fixed for 0.9.x 馃槃

@jhnns

This comment has been minimized.

Member

jhnns commented Feb 13, 2013

fuck 馃槈

@pavel06081991

This comment has been minimized.

pavel06081991 commented Nov 23, 2015

Hi, I met with the same problem. I have windows 8. When I set absolute path with forward slashes
in include/exclude properties of loaders, webpack can not understand them, but if I set path with backslashes - it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment