Open chengtie opened 6 years ago
We are in 2019, I have the same bug. Is there a solution?
Possible syntax error? (https://stackoverflow.com/questions/11276135/yuicompressortask-cant-find-bundle-for-base-name-org-mozilla-javascript-resou)
In my case it was a different syntax error → "class" reserved keyword used as object property name. (https://github.com/fancyapps/fancybox/issues/2173)
yui-compressor even with --verbose does not print anything helpful, had to use that webtool mentioned in those two issues above to figure out the cause.
To reproduce exception:
echo "var a = { class: 123 }" | yui-compressor --verbose --type js
Working version:
echo "var a = { classx: 123 }" | yui-compressor --verbose --type js
So the fix would be that there is syntax error message with line number instead of that Java exception.
Thank you.
After installing yui-compressor on Ubuntu Linux (via. apt-get install yui-compressor
) I got same error (except in my case are cs-CZ locales missing).
I am encountering this issue now and a number of people on StackOverflow have encountered the problem: YuiCompressorTask: “Can't find bundle for base name org.mozilla.javascript.resources.Messages, locale en_US”
I try to use yui-compressor to compress some JS files. It gives the following exception for some files. Could anyone help?