-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Random "Unexpected token ILLEGAL" error #43
Comments
As an example, I added logging in the brfs readFileSync fn for when the stream starts and when it ends. Here is what it looks when everything is fine:
And here's a case where it failed (notice b ends before a and f ends before e):
|
I should also mention that I didn't see this issue in browserify 3.x but only after I upgraded to 9.x so this may actually be a browserify bug. |
Did some more testing, not sure the order of stream completion matters. Might have just been a coincidence. However, if I return a string from readFileSync like in #28 (comment) then it works just fine. So it is some sort of stream issue. |
I am also getting this problem. http://stackoverflow.com/questions/29462510/intermittent-browserify-bundle-failure |
I'm having some trouble pinpointing the exact cause of this error, but I've got 4 bundles and only the one with
readFileSync
calls fails randomly with this error. In that bundle, there are 7readFileSync
calls in succession. I added some logging and it seems that when this error triggers, the source is mangled and thereadFileSync
calls are resolved out of order. It only happens once out of 20 or so times.I'd be happy to debug further, but I'm not sure where to look next or what information you might need.
The text was updated successfully, but these errors were encountered: