-
Notifications
You must be signed in to change notification settings - Fork 45
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
Passing paths with null bytes to webpack's cache breaks the build #54
Comments
Also experiencing this with webpack 5.2.0 and case-sensitive-paths-webpack-plugin 2.3.0. |
@lbnelson Are you also using the This seems an oddball edge case, I'm not doing anything particularly weird with strings, but I can look into it. |
I did some investigation, it looks like the null byte is intentionally added by Webpack when parsing the resource location (see here):
Seems like "\0#" should be replaced back to "#" in |
Apologies for the delayed reply.
|
I'm experiencing the exact same problem with Webpack 5:
Versions:
es5-next seems to be dependency of dependency:
This is pretty much preventing me from using this plugin after switching to webpack 5 |
v2.4.0 has been released with your changes, @gustaff-weldon Anyone who can test this out to make sure it fixes your issue, please do so. |
Nothing but a positive response so I'm going to close this for now, if anyone else sees this issue on 2.4.0 or up please reopen an issue. |
I get this error when trying to build my (sizable) webpack project in the production with this plugin active:
AFAICT, there really is a null byte (
\x00
) in the path there. Very strangely, it's in the path of a folder on disk, that as far as I can tell does not have an actual null byte in the pathname. The folder exists just fine:And the only thing that seems special about it is that it's got a
#
in the filename. I tried my best to search for null bytes within dependencies and my code and couldn't find any.Removing this plugin from my webpack plugins list makes the bundling succeed.
This happens for me on any webpack version greater than
5.0.0-beta.22
, including the latest which is5.5.1
. I am not sure what changed in5.0.0-beta.23
that started complaining about the null bytes.The text was updated successfully, but these errors were encountered: