-
Notifications
You must be signed in to change notification settings - Fork 106
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
Closure Compiler Error with ES6 code and Dojo 1.16.0? #79
Comments
Have the same problem |
Can you provide a (preferably minimal) test case for this? Dojo 1.16 includes a version of the Closure compiler that is a few years old, but it does have some ES6 support. I am able to build a simple app with a few ES6 features ( |
…1.16.0 (#80) * Upgraded Closure Compiler Upgraded the Google Closure Compiler to v20200112 * Fixed a typo * New format of Closure Compiler errors The format of a Google Closure Compiler error has changed (see https://github.com/google/closure-compiler/blob/35beaa864997442d635875add4d60b7b73be6294/src/com/google/javascript/jscomp/LightweightMessageFormatter.java#L113-L116) * Fixed shutting Closure Executor Service down The API accessing the Closure Executor Service has changed in this commit: google/closure-compiler@7bdbe96 * Allow compiling dojo's non-strict-mode code 1. Assume the Google Closure Compiler's input as non-strict-mode JavaScript 2. Do not emit "use strict"; in the transpiled output 3. Force reporting DiagnosticGroups.ES5_STRICT issues as warnings, instead of errors
…1.16.0 (#80) * Upgraded Closure Compiler Upgraded the Google Closure Compiler to v20200112 * Fixed a typo * New format of Closure Compiler errors The format of a Google Closure Compiler error has changed (see https://github.com/google/closure-compiler/blob/35beaa864997442d635875add4d60b7b73be6294/src/com/google/javascript/jscomp/LightweightMessageFormatter.java#L113-L116) * Fixed shutting Closure Executor Service down The API accessing the Closure Executor Service has changed in this commit: google/closure-compiler@7bdbe96 * Allow compiling dojo's non-strict-mode code 1. Assume the Google Closure Compiler's input as non-strict-mode JavaScript 2. Do not emit "use strict"; in the transpiled output 3. Force reporting DiagnosticGroups.ES5_STRICT issues as warnings, instead of errors (cherry picked from commit 86f0042)
…1.16.0 (#80) * Upgraded Closure Compiler Upgraded the Google Closure Compiler to v20200112 * Fixed a typo * New format of Closure Compiler errors The format of a Google Closure Compiler error has changed (see https://github.com/google/closure-compiler/blob/35beaa864997442d635875add4d60b7b73be6294/src/com/google/javascript/jscomp/LightweightMessageFormatter.java#L113-L116) * Fixed shutting Closure Executor Service down The API accessing the Closure Executor Service has changed in this commit: google/closure-compiler@7bdbe96 * Allow compiling dojo's non-strict-mode code 1. Assume the Google Closure Compiler's input as non-strict-mode JavaScript 2. Do not emit "use strict"; in the transpiled output 3. Force reporting DiagnosticGroups.ES5_STRICT issues as warnings, instead of errors (cherry picked from commit 86f0042)
…1.16.0 (#80) * Upgraded Closure Compiler Upgraded the Google Closure Compiler to v20200112 * Fixed a typo * New format of Closure Compiler errors The format of a Google Closure Compiler error has changed (see https://github.com/google/closure-compiler/blob/35beaa864997442d635875add4d60b7b73be6294/src/com/google/javascript/jscomp/LightweightMessageFormatter.java#L113-L116) * Fixed shutting Closure Executor Service down The API accessing the Closure Executor Service has changed in this commit: google/closure-compiler@7bdbe96 * Allow compiling dojo's non-strict-mode code 1. Assume the Google Closure Compiler's input as non-strict-mode JavaScript 2. Do not emit "use strict"; in the transpiled output 3. Force reporting DiagnosticGroups.ES5_STRICT issues as warnings, instead of errors (cherry picked from commit 86f0042)
…1.16.0 (#80) * Upgraded Closure Compiler Upgraded the Google Closure Compiler to v20200112 * Fixed a typo * New format of Closure Compiler errors The format of a Google Closure Compiler error has changed (see https://github.com/google/closure-compiler/blob/35beaa864997442d635875add4d60b7b73be6294/src/com/google/javascript/jscomp/LightweightMessageFormatter.java#L113-L116) * Fixed shutting Closure Executor Service down The API accessing the Closure Executor Service has changed in this commit: google/closure-compiler@7bdbe96 * Allow compiling dojo's non-strict-mode code 1. Assume the Google Closure Compiler's input as non-strict-mode JavaScript 2. Do not emit "use strict"; in the transpiled output 3. Force reporting DiagnosticGroups.ES5_STRICT issues as warnings, instead of errors (cherry picked from commit 86f0042)
…1.16.0 (#80) * Upgraded Closure Compiler Upgraded the Google Closure Compiler to v20200112 * Fixed a typo * New format of Closure Compiler errors The format of a Google Closure Compiler error has changed (see https://github.com/google/closure-compiler/blob/35beaa864997442d635875add4d60b7b73be6294/src/com/google/javascript/jscomp/LightweightMessageFormatter.java#L113-L116) * Fixed shutting Closure Executor Service down The API accessing the Closure Executor Service has changed in this commit: google/closure-compiler@7bdbe96 * Allow compiling dojo's non-strict-mode code 1. Assume the Google Closure Compiler's input as non-strict-mode JavaScript 2. Do not emit "use strict"; in the transpiled output 3. Force reporting DiagnosticGroups.ES5_STRICT issues as warnings, instead of errors (cherry picked from commit 86f0042)
Can this be closed? |
https://discourse.dojo.io/t/closure-compiler-strict-errors/456
As reported by yassam:
I’m using Dojo 1.16.0.
The Dojo build system is giving me INTERNAL COMPILER ERROR on my ES6 code. I figure this might be due to a buggy version of the Closure compiler shipped with Dojo, so I downloaded the latest version of the Closure compiler and I now get a bunch of errors in the dojo code itself.
It complains about dojo code not compiling in strict mode, even though I haven’t set strict mode.
Specifically, here’s the relevant part of my build profile:
layerOptimize: 'closure',
optimize: 'closure',
optimizeOptions: {
languageIn: 'ECMASCRIPT6',
languageOut: 'ECMASCRIPT5'
},
Note that the input language is ECMASCRIPT6 not ECMASCRIPT6_STRICT
Is there an easy way to get the latest version of the closure compiler to work?
The text was updated successfully, but these errors were encountered: