I published, used in formal environment, then errored:
events.js:160
throw er; // Unhandled 'error' event
^
AssertionError: When copying multiple files, provide a directory as destination
at EditionInterface.exports.copy (/usr/local/lib/node_modules/generator-webpack-babel/node_modules/mem-fs-editor/lib/actions/copy.js:34:5)
at child.writing (/usr/local/lib/node_modules/generator-webpack-babel/app/index.js:31:13)
at Object.<anonymous> (/usr/local/lib/node_modules/generator-webpack-babel/node_modules/yeoman-generator/lib/index.js:417:23)
at /usr/local/lib/node_modules/generator-webpack-babel/node_modules/run-async/index.js:25:25
at /usr/local/lib/node_modules/generator-webpack-babel/node_modules/run-async/index.js:24:19
at /usr/local/lib/node_modules/generator-webpack-babel/node_modules/yeoman-generator/lib/index.js:418:9
at runCallback (timers.js:637:20)
at tryOnImmediate (timers.js:610:5)
at processImmediate [as _immediateCallback] (timers.js:582:5)
yeoman-generator
is dependent on this package.When I written this code in debugging environment:
I run
and it's OK.
I published, used in formal environment, then errored:
When I modified code like this:
It's just OK now.
Why it had different performance? Thanks.