Closed martinbooth closed 2 years ago
I don't have a good answer for this. It doesn't seem like this error is caused by style9.
Could you see if updating webpack-virtual-modules
& loader-utils
fixes it?
That was one of the first things I tried, but no luck.. I'll try and debug a bit further.. I know the import is being appended with forward slashes, but I guess somewhere along the way it gets converted to backslashes for windows
@martinbooth Can you confirm that the branch windows-virtual-path fixes the issue?
Fixed in 0.13.3
I guess I must be the only person writing code on windows :)
I have traced the issue down to loader.js:43 where the value of css path is 'C:/Source/_/Application/Root.KBftMHg.css', that is with forward slashes instead of backslashes
I'm not really sure the best fix otherwise I'd have sent through a PR.. it seems deliberate in https://github.com/webpack/loader-utils/blob/master/lib/interpolateName.js#L44
For now, I'm just writing both paths: