Glam Prestige Journal

Bright entertainment trends with youth appeal.

I am trying to run this command:

java -jar -XX:-TieredCompilation node_modules/google-closure-compiler/compiler.jar --flagfile="/tmp/499a750e-98bc-4afa-b333-fb08fa71351e" --js=/home/ubuntu/santa-tracker-web/components/closure-library/closure/goog/base.js --externs=node_modules/google-closure-compiler/contrib/externs/google_universal_analytics_api.js --compilation_level=ADVANCED_OPTIMIZATIONS --warning_level=VERBOSE --language_in=ECMASCRIPT6_STRICT --language_out=ECMASCRIPT5_STRICT --define=santaAPIRequest.BASE="" --output_wrapper=(function(){%output%}).call(window); --rewrite_polyfills=false --generate_exports=true --export_local_property_definitions=true --jscomp_warning=accessControls --jscomp_warning=const --jscomp_warning=visibility --js_output_file="santa.min.js"

It is actually an error from a gulpfile, but I have narrowed this issue down to this specific line of code here which creates said issue. It complains about the syntax - but to my eye I can't catch what seems to be the issue.

Thanks in Advance!

1

1 Answer

You have to use quotes to protect

function(){%output%}).call(window);

from the shell:

java -jar -XX:-TieredCompilation node_modules/google-closure-compiler/compiler.jar --flagfile="/tmp/499a750e-98bc-4afa-b333-fb08fa71351e" --js=/home/ubuntu/santa-tracker-web/components/closure-library/closure/goog/base.js --externs=node_modules/google-closure-compiler/contrib/externs/google_universal_analytics_api.js --compilation_level=ADVANCED_OPTIMIZATIONS --warning_level=VERBOSE --language_in=ECMASCRIPT6_STRICT --language_out=ECMASCRIPT5_STRICT --define=santaAPIRequest.BASE="" --output_wrapper='(function(){%output%}).call(window);' --rewrite_polyfills=false --generate_exports=true --export_local_property_definitions=true --jscomp_warning=accessControls --jscomp_warning=const --jscomp_warning=visibility --js_output_file="santa.min.js"

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy