question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR - this language feature is only supported for ECMASCRIPT6 mode or better: block-scoped function declaration

See original GitHub issue

Hello team!

Before I proceed, I took a look on the issue #52 which is the same. I’ve tried to check the workspace_svg.js file but there are no constants, assuming that you have already fixed it too [Issue was back in 2017].

Any way, this is the error that I’m getting when trying to compile using the command python build-app.py maze en . Note that I am on MacOS Sierra 10.12.6.

Maze - en - uncompressed: closure-library/closure/bin/build/closurebuilder.py: Scanning paths… closure-library/closure/bin/build/closurebuilder.py: 2424 sources scanned. closure-library/closure/bin/build/closurebuilder.py: Building dependency tree…

Maze - en - compressed: appengine/third-party/SoundJS/soundjs-NEXT.js:310: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:311: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:312: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:314: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:315: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:316: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:317: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:2400: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:4023: WARNING - Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:6819: WARNING - Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:7046: WARNING - Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:7106: WARNING - Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:7441: WARNING - Bad type annotation. type not recognized due to syntax error. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs-NEXT.js:7459: WARNING - Bad type annotation. type not recognized due to syntax error. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:310: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:311: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:312: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:314: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:315: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:316: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:317: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:2400: WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:4023: WARNING - Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:6819: WARNING - Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:7046: WARNING - Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:7106: WARNING - Bad type annotation. expected closing } See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:7441: WARNING - Bad type annotation. type not recognized due to syntax error. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/SoundJS/soundjs.js:7459: WARNING - Bad type annotation. type not recognized due to syntax error. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.

appengine/third-party/midi-js/examples/inc/timer.js:187: WARNING - String continuations are not recommended. See https://google.github.io/styleguide/javascriptguide.xml?showone=Multiline_string_literals#Multiline_string_literals

appengine/third-party/midi-js/generator/nodejs/packageWAVs.js:87: WARNING - String continuations are not recommended. See https://google.github.io/styleguide/javascriptguide.xml?showone=Multiline_string_literals#Multiline_string_literals

appengine/third-party/ace/worker-xml.js:1: ERROR - this language feature is only supported for ECMASCRIPT6 mode or better: block-scoped function declaration. Use --language_in=ECMASCRIPT6 or ECMASCRIPT6_STRICT or higher to enable ES6 features.

1 error(s), 30 warning(s)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
NeilFrasercommented, Mar 2, 2018

Ace repackaged the file, but the changes were not part of the new build. I’ve asked why: https://github.com/ajaxorg/ace-builds/issues/123

1reaction
NeilFrasercommented, Feb 20, 2018

Yes, the error is in a third-party dependency: appengine/third-party/ace/worker-xml.js

We submitted a PR to them last week, which they accepted: https://github.com/ajaxorg/ace/pull/3563

Just waiting on them to repackage this file: https://github.com/ajaxorg/ace-builds/blob/master/src-min-noconflict/worker-xml.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

this language feature is only supported for ECMASCRIPT6 ...
Error at line 6, character 282 : this language feature is only supported for ECMASCRIPT6 mode or better: block-scoped function declaration. Use ...
Read more >
This language feature is only supported for ECMASCRIPT6 ...
ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: block-scoped function declaration. #3189.
Read more >
ECMASCRIPT6 error while building image on adobe as...
js:2394 : ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: block-scoped function declaration. function h(a, b, c) {....
Read more >
tag manager scripts
This language feature is only supported for ECMASCRIPT6 mode or better: block-scoped function declaration. when using CS with ES5 mode (which we should ......
Read more >
3. One JavaScript: avoiding versioning in ECMAScript 6
ECMAScript 5 strict mode forbids function declarations in blocks. The specification allowed them in sloppy mode, but didn't specify how they should behave....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found