xialeistudio / x.pomelo-client

pomelo client for CommonJs(nodejs,webpack,etc...)
0 stars 1 forks source link

Error when yarn build #3

Open pipilink opened 6 years ago

pipilink commented 6 years ago

Hello! I had rename index.js to pomeloclient.js and copy this into src project.

yarn build yarn run v1.10.1 $ react-scripts build Creating an optimized production build... Failed to compile.

./src/pomeloclient.js Line 164: Parsing error: arguments is a reserved word in strict mode

162 | var msg = {}; 163 | var cb;

164 | arguments = Array.prototype.slice.apply(arguments); | ^ 165 | if(arguments.length === 2){ 166 | if(typeof arguments[1] === 'function'){ 167 | cb = arguments[1];

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

xialeistudio commented 6 years ago

Thanks for your issue,this package is design for no strict environment. I'll modify it.