You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a parse error when I convert the next code by the gulp-browserify.
const{
EventEmitter
}=require('events')constem=newEventEmitter()em.on('data',({
one,
two
})=>console.log(one+two))em.emit('data',{one: 1,two: 2})
The error messages are:
npx gulp browserify ~/test
[16:32:19] Using gulpfile ~/test/gulpfile.js
[16:32:19] Starting 'browserify'...
events.js:182
throw er; // Unhandled 'error' event
^
Error: Parsing file /Users/shigerunakajima/test/fake_acd2fc2c.js: Line 9: Unexpected token =>
at Deps.parseDeps (/Users/shigerunakajima/test/node_modules/module-deps/index.js:339:28)
at /Users/shigerunakajima/test/node_modules/module-deps/index.js:261:37
at ConcatStream.<anonymous> (/Users/shigerunakajima/test/node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:110:20)
at ConcatStream.emit (events.js:207:7)
at finishMaybe (/Users/shigerunakajima/test/node_modules/readable-stream/lib/_stream_writable.js:460:14)
at endWritable (/Users/shigerunakajima/test/node_modules/readable-stream/lib/_stream_writable.js:469:3)
at ConcatStream.Writable.end (/Users/shigerunakajima/test/node_modules/readable-stream/lib/_stream_writable.js:436:5)
at DuplexWrapper.onend (/Users/shigerunakajima/test/node_modules/readable-stream/lib/_stream_readable.js:537:10)
at Object.onceWrapper (events.js:314:30)
NOTE: THIS PLUGIN IS NO LONGER MAINTAINED , checkout gulp-bro for a similar plugin, or the recipes by gulp team for reference on using browserify with gulp.
Error information
I found a parse error when I convert the next code by the gulp-browserify.
The error messages are:
Run this code on the node v8.2.1 and it succeeds.
And the browserify v14.4.0 can convert this code.
To reproduce
gulpfile.js
package.json
The text was updated successfully, but these errors were encountered: