dmcquay / node-apac

node-apac - Node.js client for the Amazon Product Advertising API, including support of Request Signatures
MIT License
499 stars 111 forks source link

npm run build throws an error with create react app #90

Closed rokit closed 7 years ago

rokit commented 7 years ago

Using this with Create React App. When I do npm run build it throws this error: SyntaxError: Unexpected token: name (RSH) [./~/apac/lib/request-signature-helper.js:5,0]

dmcquay commented 7 years ago

I do not support usage of this model in the browser. Doing so is a security vulnerability since it will expose your amazon secret key. Nevertheless, if you want to try to do it anyway, the error you're getting seems to be class syntax. Maybe the default Babel config doesn't support the syntax being used?