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
will hang on "95% emit(ting)" if output.path
contains reserved characters
#2908
Comments
@bitttttten Mind posting your webpack.config? I'm running into a similar issue with Webpack 2's 25th beta. |
We're using Node 6.7 and webpack@2.1.0-beta.25.
|
This will happen if your [path] contains invalid characters. Just to confirm, are you running a Windows OS? |
@bitten I'm using Windows Server 2008. The path contains reserved characters as well (''), but works with webpack 2.1's beta-22.
|
My webpack config just looked like yours or any boiler plate config. I was just trying to generate a filename with a timestamp so it ended up like "18:44.js" and just changed it to "18-44.js". Perhaps they've fixed this by swapping out reserved characters for safe ones in Webpack 2. A way to fix this in Webpack 1 is to dig into your loader and do some kind of regex replace on the |
I'm getting this problem but I don't think my path has reserved characters. |
Yep... failure... But I'm not sure this is the issue?
This will point usually to D:\root... and it works when I'm not using my prod config. |
Alright, for some people the culprit might be this helpers.root that you got from AngularClass. D:\git\path1\D:\path2 |
I am not sure this helps anyone but I had the same issue while running node v7.2.1. I switched to 6.9.2 and stopped having this problem. |
Same problem here with Windows 10 + webpack 1.14.0 + Node 6.9.0 but it only hangs when I add ManifestPlugin to my list of plugins. If I leave it out, everything works fine. No matter what my output.path is (in my case it is |
I'm having the same issue. The culprit seems to be the |
Hi for me the issue is the [path] placeholder in file-loader. It uses context so you have to define |
Also having this issue, Suggestion from @rainice fixed it. |
@rainice fixed my issue too. I was using the
to
|
Hey guys, I was stuck with this problem for a few hours now, tried everything I found posted here and elsewhere (node-sass issues, file-loader issues). What eventually solved it for me was removing noInfo option from my dev config. Not really sure why, what it changes internally, but maybe it will help someone else... :) |
Same here on windows |
Can somebody help with this issue? skevy/graphiql-app#67 |
@ProphetDaniel I had to dig into the webpack source files in my node_modules folder and start dropping console logs all over the place to see where it stopped. It took me a good while to find out my original issue, and from seeing this thread it seems like there isn't one reason why this happens. Your fix may not be listed here. So I wish you good luck! |
@bitttttten , did you also try upgrading to webpack 2 approach? skevy/graphiql-app#67 (comment) |
No, I haven't looked at this issue for a bit over 2 years now. I just stopped using reserved characters in my output path 😅 I think this sympton of being stuck on 95% emitting can be caused by many things and many things will solve it for different people. |
Webpack 4, My output path has no reserved charaters and I am not using __dirname, any method listed here do not work for me. It a sad story |
If you are really stuck, you may have to go down this route 😬 |
hi, I have the same problem with ManifestPlugin and Mac, and have you fixed it yet ? |
Updated the top post to add a disclaimer since it seems that many people come to this issue for many different reasons. |
Also have this problem when run npm run watch
I cannot understand reason of this problem. here is my webpack.mix.js
|
Trying to find the problem I found that if I delete string
Then I see that npm run commands works, but app.css and app.js are compiled to publicc instead css and js subfolders.
But still I cannot understand what is the problem, because I didn't touch webpack for a few days. So it is not my stupid fault os mistype and I also didn't do something special to remove this error. |
|
I have run into the same error, using the following environment:
I tried all the potential workarounds in this thread. The only one that worked for me was the above suggestion from @schel4ok. In other words when I modify my When I move these files into the correct folders ( However, when I reset I have not had time yet to work through webpack files placing console log messages, it seems that is the logical next step. In the meantime this quick and dirty fix allows me to keep working on my project. |
Should work with |
From those coming from Google
It seems that hanging on "95%" is a symptom from many different issues. If there is an uncaught problem at a certain point in your build, webpack will just get stuck here. It doesn't mean it is because of reserved characters for you (although it might be). The comments in this thread may help you debug your own issue. Godspeed!
I'm submitting a feature request
Webpack version:
1.10.x & 2.x
Please tell us about your environment:
Windows 10
Current behavior:
When using an invalid or reserved character in the
output.path
webpack will hang with no output. Running with the--progress
flag will show that it's hanging on95% emit(ting)
(suffix depending on webpack version).Webpack 1.13.2: hangs on
95% emit
Webpack v2.1.0-beta.21: hangs on
95% emitting
Expected/desired behavior:
Perhaps throw an error if
output.path
contains reserved characters?What is the motivation / use case for changing the behavior?
To save debugging time for future people who try to use reserved characters names in the output path :,)
I'm happy to set up a PR on this if need be, I just wanted to make it known here.. perhaps there's a reason to this.
The text was updated successfully, but these errors were encountered: