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
Unexpected token: eof (undefined) error when running task #406
Comments
Maybe it's better to do that hack for now, if you can send the "corrupt" file. Pls upload on gist.github.com or so on case someone wants to digg in or when we get more of these issues. Then the bug is at least somewhat documented. |
Unfortunately, I won't be able to upload the code since it is proprietary. I was able to come up with another workaround to solve the problem. Documenting it here just in case someone else needs it. I added a lineending task before invoking uglify to explicitly convert the line endings. Now uglify runs without issues. |
hmm it's a bit weird that an error occurs while parsing in a block, bug seems to be uglifyjs side though (or after concatenating multiple files) |
Yes. I am concatenating multiple files before running uglify. |
I have seen something like this before. The problem was the grunt.util.linefeed = "\u000A"; |
In case someone is here because of the uglifyjs error:
I got this same error using ember. The solution was to update |
The error and stack trace are below.
Observations:
M/c: mac
The text was updated successfully, but these errors were encountered: