Unexpected token ) after latest update (1.7.2)
See original GitHub issueI’ve this error message after the latest update (f51b931c831ed405e535025aea24dafdffb11e11)
//node_modules/lcov-result-merger/node_modules/vinyl-fs/node_modules/gulp-sourcemaps/index.js:38
debug(() => {return options;});
SyntaxError: Unexpected token )
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (//node_modules/lcov-result-merger/node_modules/vinyl-fs/lib/src/index.js:8:18)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
The token referred is the first closing round bracket: debug(() => {return options;});
I’m using node v0.12.7
Replacing all
() => {<return here>}
with
function() {<return here}
seems to fix it.
I’m not sure if it would be a good fix, or maybe the problem is related to the node version. If the latest, maybe 1.7.2 should be restricted to higher versions of NodeJs
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:8
Top GitHub Comments
Ugh, yeah your right. I’ll revert the es6 tomorrow. Unpublish 1.7.2 and push 1.7.
Sent from my mobile device
VR,
Nicholas McCready twitter:nmccready email:nmccready@gmail.com github:nmccready
On Oct 11, 2016 10:38 PM, “Gaspar Zaragoza” notifications@github.com wrote:
Done https://github.com/floridoo/gulp-sourcemaps/releases/tag/v1.7.3
8ecaa7320d0c656514dfc07b15611d682f757818 39e1b3b1ffee13620e6d56fc4c673c04271406ec
Important notes:
debug-fabulous also had to be made node compat 0.X as well as lazy-debug
https://github.com/nmccready/debug-fabulous/commit/696f343617dce122ae03dc95e47050e48e87e3d4