-
Notifications
You must be signed in to change notification settings - Fork 219
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
[v3.0.2] Plugin.prototype.readFile this.outputs[file] undefined because of OS path separator #349
Comments
Could you try with const normalize = (file) => file.split(path.sep).join('/')
...
... this.outputs[normalize(file)] ... I'm assuming your are on windows, right? Otherwise please elaborate in more detail what doesn't work please (Actual/Expected) |
Yes I am on Windows. |
Running karma-webpack on Windows results in the following error message on 3.0.2:
Running on 2.0.0 works. |
Can confirm, just got bit by this on Windows and making paths like |
I don't run Windows but still have the same issue
but this runs later. |
downgrading to |
going from 2.x to 3.x, the code became dependent on os path separator:
2.0.13
3.0.2
this.outputs[file]
should bethis.outputs[file.replace(/\\/g, '/')]
The text was updated successfully, but these errors were encountered: