algolia / gatsby-plugin-algolia

A plugin to push to Algolia based on graphQl queries
https://yarn.pm/gatsby-plugin-algolia
Apache License 2.0
177 stars 45 forks source link

SyntaxError: missing ) after argument list -- node_modules/gatsby-plugin-algolia/gatsby-node.js:11 #2

Closed cmalla94 closed 6 years ago

cmalla94 commented 6 years ago

Running gatsby develop throws a syntax error for missing a closing bracket. Checked the brackets, none missing. Line 11 in gatsby-angolia/gatsby-node.js file.

Haroenv commented 6 years ago

That's quite odd, can you give a minimal reproduction in which this happens? The brackets and parentheses seem fine to me. Maybe you're running this on an old node version that doesn't support destructuring?

I think I'll need more info to be able to debug this 😄

cmalla94 commented 6 years ago

Thanks, yeah it was a problem with the node version. Did update to the latest stable version.