-
Notifications
You must be signed in to change notification settings - Fork 47
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
composes (import) doesn't seem to work at all (on Windows at least) #74
Comments
Oh, if i just use a local value it works, no complaints. |
That path looks real broken, which is a problem I've run into before. I can't find the issue any more though :( |
Yes, I noticed :( I didn't have enough time to debug the loader mechanism to see where it goes wrong - I had a hunch maybe it's Windows only problem. Anyone? :s |
I have exactly the same issue with the Experienced this issue on two windows environments... (both on the
|
Tried looking into the issue but since I'm not quite clear on how all the components work together I can't seem to pinpoint the issue. |
Thanks for following up; hope this gets merged soon - I am sad :( :D |
Not sure if it's a new information, but i have found a problem here css-modulesify/file-system-loader.js Line 72 in f428ded
The aformentioned loader-core pullrequest is going to have the same issue here https://github.com/sullenor/css-modules-loader-core/blob/b626256652eb1d658c5a4d039d5136eb23a26a6d/src/file-system-loader.js#L34 . I believe this should be reported in the loader repo, or am i wrong? (I don't know anything about it, so i better ask :) ) |
Thanks for the tip @r-flash . Yes please report in the loader repo, that will be helpful. Can you suggest a better approach for determining whether a path is relative or absolute that will work on windows? |
@joshwnj For |
super helpful, thanks @tivac ! |
Just found out this was already taken care of in this PR. |
Any updates on this? Being unable to use one of the best features of CSS modules on a whole OS is kinda frustrating. |
I think I can take a bit of time later today to put together a PR based on the suggestions in this thread (but if anyone else beats me to it that's cool too :P ) And then I'll ask for your help to test on windows @Nimelrian :) Thanks for your interest in getting this resolved |
@Nimelrian when you have a moment could you please check whether #117 fixes the issue? There might be more to it, but this will at least fix one of the windows compatibility issues as pointed out by others in the thread above. |
@joshwnj See my comment in the PR. |
@Nimelrian thanks for the notes in the PR. Would you also be able to create a small github repo with those files, so we can test against that failing case more easily? |
I wonder if travis-ci (or equivalent) has an option to build on a windows machine? Anybody have an idea of how we could set up something like that? |
Test repo: travis-ci can not build on Windows AFAIK. Jenkins can for sure if you have the building node running on Windows. |
@joshwnj The problem definitely lies either in Edit: I think there's also a problem with the way |
Sorry I haven't been able to dig further into this. I'm OOO all next week, so been busy getting ready for that :) If anyone else would like to step in and figure out the next piece of this, please feel free :) |
Hey, trying to use a simple import statement to import a value from another css file:
values.css
header.css
I'm getting the following error:
Notes:
header.css
is being imported from a react component as part of a browserify stackcompose
statementAny idea what is wrong here? :( I tried to investigate the file loading code, but I didn't have any luck understading what was going on.
The text was updated successfully, but these errors were encountered: